Practical_RL
Practical_RL copied to clipboard
PyTorch notebooks should detect GPU and run on it if it's available
device = 'cuda' if torch.cuda.is_available() else 'cpu'
...
model = model.to(device)