PyTorch-Deep-Dream
PyTorch-Deep-Dream copied to clipboard
Fix to Use Cuda Tensors
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