You can find training section of my code below:
device = torch.device(‘cuda’ if torch.cuda.is_available() else ‘cpu’)
Note: I am receiving True w