RuntimeError: Attempting to deserialize object on a CUDA device
Why I'm getting this issue? I try to load a pre-trained PyTorch model on my laptop, but I get this error.
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False.
If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU