You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cd_model_unc_cifar10_wine.ipynb example, .cuda() should be added to reg model variable.
If this is not applied, I got below error.
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument forargument mat1in method wrapper_addmm)
device = torch.device('cuda'iftorch.cuda.is_available() else'cpu')
trainer(reg.cuda(), nn.MSELoss(), X_train_dl, device, torch.optim.Adam, learning_rate=0.001, epochs=30)
The text was updated successfully, but these errors were encountered:
From @KevinRyu in #432:
In cd_model_unc_cifar10_wine.ipynb example, .cuda() should be added to reg model variable.
If this is not applied, I got below error.
The text was updated successfully, but these errors were encountered: