Solved by albanD in post #2 
              
              
                Hi, 
Mostly for clarity. tensor.clone().detach() makes it very clear what happens to the Tensor: You first allocate new memory for it then detach it from the autograd graph from the original one. 
torch.tensor(source_tensor) does the same thing but you can easily forget it and have hard-to-debug iss…