Solved by Nikronic in post #2 
              
              
                Hi, 
There is a tensor.function_ for every tensor.function. The difference is that first one is in-place operation while the latter is not. Both of them use same operations. 
In this page (and some others), you will find similar functions. 
For instance, 
x = torch.tensor([1,2,3])
print(x)  # tensor…