Answers for "RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False"

1

RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available()

model = torch.load('mymodel.pt',map_location=torch.device('cpu'))
Posted by: Guest on January-13-2021

Code answers related to "RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False"

Python Answers by Framework

Browse Popular Code Answers by Language