public class ConstantInitializer extends java.lang.Object implements Initializer
ONES, ZEROS| Constructor and Description |
|---|
ConstantInitializer(float value)
Creates a Constant Initializer.
|
| Modifier and Type | Method and Description |
|---|---|
NDArray |
initialize(NDManager manager,
Shape shape,
DataType dataType)
Initializes a single
NDArray. |
public ConstantInitializer(float value)
value - the value to fillpublic NDArray initialize(NDManager manager, Shape shape, DataType dataType)
NDArray.initialize in interface Initializermanager - the NDManager to create the new NDArray inshape - the Shape for the new NDArraydataType - the DataType for the new NDArrayNDArray initialized with the manager and shape