Don’t operate on the data; any change on the data will not be included in the graph.
Instead, if you want to do in-place division, you can do outputs.div_(t). However, as suggested in the reference, just avoid any in-place operations.
reference:
http://pytorch.org/docs/notes/autograd.html#in-place-operations-on-variables 48