Cast

public final class Cast

Cast x of type SrcT to y of DstT.

Nested Classes

class Cast.Options Optional attributes for Cast  

Constants

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

Public Methods

static Cast.Options
Truncate(Boolean Truncate)
Output<U>
asOutput()
Returns the symbolic handle of the tensor.
static <U extends TType> Cast<U>
create(Scope scope, Operand<? extends TType> x, Class<U> DstT, Options... options)
Factory method to create a class wrapping a new Cast operation.
Output<U>
y()

Inherited Methods

Constants

public static final String OP_NAME

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

Constant Value: "Cast"

Public Methods

public static Cast.Options Truncate (Boolean Truncate)

public Output<U> 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 Cast<U> create (Scope scope, Operand<? extends TType> x, Class<U> DstT, Options... options)

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

Parameters
scope current scope
options carries optional attributes values
Returns
  • a new instance of Cast

public Output<U> y ()