On this page
torch.Tensor.copy_
Tensor.copy_(src, non_blocking=False) → Tensor- 
    
Copies the elements from
srcintoselftensor and returnsself.The
srctensor must be broadcastable with theselftensor. It may be of a different data type or reside on a different device. 
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
 https://pytorch.org/docs/2.1/generated/torch.Tensor.copy_.html