CastHelper

public class CastHelper

A helper class for casting an Operand

Public Constructors

Public Methods

static <T extends TType , U extends TType > Operand <T>
cast (Ops tf, Operand <U> value, Class<T> requiredType)
Casts an operand to the desired type.

Inherited Methods

Public Constructors

public CastHelper ()

Public Methods

public static Operand <T> cast (Ops tf, Operand <U> value, Class<T> requiredType)

Casts an operand to the desired type.

Parameters
tf The TensorFlow Ops
value the value to be cast
requiredType the required data type
Returns
  • the value cast to the required data type.