Class Zeros<T extends TType>
java.lang.Object
org.tensorflow.framework.initializers.BaseInitializer<T>
org.tensorflow.framework.initializers.Zeros<T>
- Type Parameters:
T- The TType for the call operation
- All Implemented Interfaces:
Initializer<T>
Creates an Initializer that sets all values to zero.
Examples:
Zeros<TFloat32> initializer =
new org.tensorflow.framework.initializers.Zeros<>(tf);
Operand<TFloat32> values =
initializer.call(Ops tf, tf.constant(Shape.of(2,2)), TFloat32.class);
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class BaseInitializer
getName
-
Constructor Details
-
Zeros
public Zeros()Creates an Initializer that sets all values to one.
-
-
Method Details
-
call
Description copied from interface:InitializerGenerates the operation used to perform the initialization.- Parameters:
tf- the TensorFlow Opsdims- the shape dimensionstype- the type of tensor- Returns:
- An operand for the initialization.
-