Copy a tensor from CPU-to-CPU or GPU-to-GPU.
tf.raw_ops.Copy(
input, tensor_name='', debug_ops_spec=[], name=None
)
Performs CPU-to-CPU or GPU-to-GPU deep-copying of tensor, depending on the device on which the tensor is allocated. N.B.: If the all downstream attached debug ops are disabled given the current gRPC gating status, the output will simply forward the input tensor without deep-copying. See the documentation of Debug* ops for more details.
Unlike the CopyHost Op, this op does not have HostMemory constraint on its input or output.
Returns | |
---|---|
A Tensor . Has the same type as input .
|