if the user doesn't have CUDA, calling the torch.load method will throw an exception:
_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 maplocation=torch.device('cpu') to map your storages to the CPU.
Added device forwarding to map_location argument.
if the user doesn't have CUDA, calling the torch.load method will throw an exception: _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 maplocation=torch.device('cpu') to map your storages to the CPU. Added device forwarding to map_location argument.