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

boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

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.