Class CastHelper
java.lang.Object
org.tensorflow.framework.utils.CastHelper
A helper class for casting an Operand
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CastHelper
public CastHelper()
-
-
Method Details
-
cast
public 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.- Type Parameters:
T- the required data typeU- the original data type of the value- Parameters:
tf- The TensorFlow Opsvalue- the value to be castrequiredType- the required data type- Returns:
- the value cast to the required data type.
-