Open ChuangZhang1999 opened 10 months ago
Try running this and see if you still get the error.
import torch
print("Is CUDA available:", torch.cuda.is_available())
print("CUDA version:", torch.version.cuda)
print("cuDNN version:", torch.backends.cudnn.version())
a = torch.randn(1024, 1024, device="cuda:0")
b = torch.randn(1024, 1024, device="cuda:0")
c = torch.matmul(a, b) # Matrix multiplication
print("Matrix multiplication result shape:", c.shape)
If so, you need to fix your PyTorch/CUDA installation. Try
conda install pytorch -c pytorch
Fixed!try the new code!
When I tried to run ./train_mpe_spread.sh, I met the following issue: