A helper class for casting an Operand
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
From class
java.lang.Object
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 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.