Hello,
I have trained my Agent and saved it in a torch file, using Colab and its CUDA resources.
I want to import the torch file locally in a machine with a CPU and use it to test the trained agent in a set of test environments. However, I get the following 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.
Screenshot 2020-09-27 at 19.21.47816×777 130 KB