# Check if GPU is available for faster training time if torch.cuda.is_available(): device = torch.device('cuda:0') else: device = torch.device('cpu')