public class
Constant
Initializer that generates tensors with a constant value.
Examples:
Constant<TFloat32> initializer = new org.tensorflow.framework.initializers.Constant<>(tf, 3f); Operand<TFloat32> values = initializer.call(tf.constant(Shape.of(2,2)), TFloat32.class);
Public Constructors
Constant(Ops tf, long value)
Creates an Initializer that generates tensors with a constant value.
|
|
Constant(Ops tf, double value)
Creates an Initializer that generates tensors with a constant value.
|
|
Constant(Ops tf, boolean value)
Creates an Initializer that generates tensors with a constant value.
|
Public Methods
Operand<T> |
Inherited Methods
Public Constructors
public Constant (Ops tf, long value)
Creates an Initializer that generates tensors with a constant value.
Parameters
tf | the TensorFlow Ops |
---|---|
value | a long value used for the constant. |
public Constant (Ops tf, double value)
Creates an Initializer that generates tensors with a constant value.
Parameters
tf | the TensorFlow Ops |
---|---|
value | a double value used for the constant. |
public Constant (Ops tf, boolean value)
Creates an Initializer that generates tensors with a constant value.
Parameters
tf | the TensorFlow Ops |
---|---|
value | a boolean value used for the constant. |