Is there a way to do in place operations when you are accessing a tensor by reference?  As an example I’d like to be able to change the original temp calling sigmoid (and possibly other operations more complex than +=  ) on temp2.
>>> import torch
>>> temp = {0:torch.zeros(4), 1:torch.zeros(4)}
>>> temp2 = temp[0]
>>> temp2+=1
>>> temp
{0: tensor([1., 1., 1., 1.]), 1: tensor([0., 0., 0., 0.])}
>>> temp2 = temp2.sigmoid()
>>> temp2
tensor([0.7311, 0.7311, 0.7311, 0.7311])
>>> temp
{0: tensor([1., 1., 1., 1.]), 1: tensor([0., 0., 0., 0.])}