I am new to PyTorch and was intrigued by Jeremy Howard of fast.ai to learn. His Deep Learning videos are simply great and completely free.
The tutorial says to uncomment this to run on GPU but it assigns to dtype whereas it should assign to device. This typo is repeated on all examples.
dtype = torch.float
device = torch.device(“cpu”)
# dtype = torch.device(“cuda:0”) # Uncomment this to run on GPU