On this page
tf.raw_ops.Copy
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.
| Args | |
|---|---|
input | 
      A Tensor. Input tensor. | 
     
tensor_name | 
      An optional string. Defaults to "". The name of the input tensor. | 
     
debug_ops_spec | 
      An optional list of strings. Defaults to []. A list of debug op spec (op, url, gated_grpc) for attached debug ops. Each element of the list has the format  | 
     
name | 
      A name for the operation (optional). | 
| Returns | |
|---|---|
A Tensor. Has the same type as input. | 
     
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
 https://www.tensorflow.org/versions/r2.3/api_docs/python/tf/raw_ops/Copy