Tensor.copy
- Tensor.copy(name=None, copy_data=True)[source]
Create a copy of the tensor.
- Parameters
name (str | None) – Name of the copied tensor.
copy_data (bool) – If True, a copy of the underlying NumPy data will be performed, otherwise the copied tensor will refer to the same data. Default: True.
- Returns
Copy of tensor.
- Return type
Self