pytorch-tutorial
pytorch-tutorial copied to clipboard
Hi,I has this problem in style transfer!
I have this error in run the code of style transfer:
'
Traceback (most recent call last):
File "main.py", line 86, in
' anyone can help me solve this?Thanks!
@BCWang93 How about change device
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
to just
device = torch.device('cpu')
Is there someone who knows how to edit code to use "cuda" to train the model instead of 'cpu'? Thanks a lot!