Help protect the Great Barrier Reef with TensorFlow on Kaggle Join Challenge

CopyHost

public final class CopyHost

Copy a tensor to host.

Performs CPU-to-CPU deep-copying of tensor. 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 Copy Op, this op has HostMemory constraint on its input or output.

Nested Classes

class CopyHost.Options Optional attributes for CopyHost  

Public Methods

Output<T>
asOutput()
Returns the symbolic handle of a tensor.
static <T> CopyHost<T>
create(Scope scope, Operand<T> input, Options... options)
Factory method to create a class wrapping a new CopyHost operation.
static CopyHost.Options
debugOpsSpec(List<String> debugOpsSpec)
Output<T>
output()
static CopyHost.Options
tensorName(String tensorName)

Inherited Methods

Public Methods

public Output<T> asOutput ()

Returns the symbolic handle of a tensor.

Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

public static CopyHost<T> create (Scope scope, Operand<T> input, Options... options)

Factory method to create a class wrapping a new CopyHost operation.

Parameters
scope current scope
input Input tensor.
options carries optional attributes values
Returns
  • a new instance of CopyHost

public static CopyHost.Options debugOpsSpec (List<String> debugOpsSpec)

Parameters
debugOpsSpec A list of debug op spec (op, url, gated_grpc) for attached debug ops. Each element of the list has the format ;;, wherein gated_grpc is boolean represented as 0/1. E.g., "DebugIdentity;grpc://foo:3333;1", "DebugIdentity;file:///tmp/tfdbg_1;0".

public Output<T> output ()

public static CopyHost.Options tensorName (String tensorName)

Parameters
tensorName The name of the input tensor.