SerializeTensor

public final class SerializeTensor

Transforms a Tensor into a serialized TensorProto proto.

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

Output<TString>
asOutput()
Returns the symbolic handle of the tensor.
static SerializeTensor
create(Scope scope, Operand<? extends TType> tensor)
Factory method to create a class wrapping a new SerializeTensor operation.
Output<TString>
serialized()
A serialized TensorProto proto of the input tensor.

Inherited Methods

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "SerializeTensor"

Public Methods

public Output<TString> asOutput ()

Returns the symbolic handle of the 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 SerializeTensor create (Scope scope, Operand<? extends TType> tensor)

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

Parameters
scope current scope
tensor A Tensor of type `T`.
Returns
  • a new instance of SerializeTensor

public Output<TString> serialized ()

A serialized TensorProto proto of the input tensor.