[resolved] How does one create copy of tensors in PyTorch? 
  
  
    I was trying to create new copies (so that python was pointing at different objects and not just updating the same copy across multiple namespaces). I tried it by getting the actual numpy data from a tensor and using that to create a brand new tensor but that didn’t work. Why did it not work? How does one do this? 
>>> y

 3  3
 3  3
 3  3
[torch.FloatTensor of size 3x2]

>>> yv.data = torch.FloatTensor( y.numpy() )
>>> yv
Variable containing:
 3  3
 3  3
 3  3
[torch.FloatTensor of size 3x2]

>>…
  


I think you should check this.