Closed philippwulff closed 3 years ago
I am not sure, why one needs to check for cuda
in the terminal in the first place and ended up with the following code.
if torch.cuda.is_available():
device = torch.device("cuda")
else:
device = torch.device("cpu")
torch.cuda.is_available()
returns True for me, so I think, I am using my GPU =).
I am currently reading the chapter regarding the Atari-GAN-Project. This is the corresponding code:
Deep-Reinforcement-Learning-Hands-On/Chapter03/03_atari_gan.py
.I wanted to follow along in a Jupyter Notebook and would basically just copy the code as I read it. However that leads to this error:
Do you know what this is about? Because running the pure Python script in the terminal worked for me just fine.