Dive-into-DL-PyTorch
Dive-into-DL-PyTorch copied to clipboard
Update 2.3_autograd.ipynb
Change tensor.data
to tensor.detach()
due to
https://github.com/pytorch/pytorch/issues/6990#issuecomment-384680164
tensor.detach()
is more robust than tensor.data
.