eriklindernoren/PyTorch-Deep-Dream

Fix to Use Cuda Tensors

ss32 opened this issue · 0 comments

ss32 commented

Currently the code fails if using Cuda. Line 24 should read

- image.data += norm_lr * image.grad.data
+ image.data += Tensor([norm_lr]) * image.grad.data