tensor.identity
Return a Tensor with the same shape and contents as input.
Args
self
(@Tensor<T>
) - Input tensor.
Returns
A new Tensor<T>
to copy input into.
Example
Last updated
Return a Tensor with the same shape and contents as input.
self
(@Tensor<T>
) - Input tensor.
A new Tensor<T>
to copy input into.
Last updated