Dive-into-DL-PyTorch icon indicating copy to clipboard operation
Dive-into-DL-PyTorch copied to clipboard

Update 2.3_autograd.ipynb

Open haoma7 opened this issue 4 years ago • 0 comments

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.

haoma7 avatar Oct 21 '19 16:10 haoma7