W3cubDocs

/TensorFlow C++

tensorflow::ops::Copy

#include <array_ops.h>

Copy Op.

Summary

Performs CPU-to-CPU or GPU-to-GPU deep-copying of tensor, depending on the device on which the tensor is allocated.

Unlike the CopyHost Op, this op does not have HostMemory constraint on its input or output.

Arguments:

Optional attributes (see Attrs):

  • tensor_name: The name of the input tensor.

Returns:

Constructors and Destructors
Copy(const ::tensorflow::Scope & scope, ::tensorflow::Input input)
Copy(const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Copy::Attrs & attrs)
Public attributes
output
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Public static functions
TensorName(StringPiece x)
Structs
tensorflow::ops::Copy::Attrs

Optional attribute setters for Copy.

Public attributes

output

::tensorflow::Output output

Public functions

Copy

 Copy(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

Copy

 Copy(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const Copy::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Public static functions

TensorName

Attrs TensorName(
  StringPiece x
)

© 2017 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/api_docs/cc/class/tensorflow/ops/copy.html