Ramsri Goutham
1 min readAug 12, 2020

--

Hi Riyaz ! Change this line device = torch.device('cpu') to device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")

--

--

Responses (1)