class MXNet::Initializer::Constant
- MXNet::Initializer::Constant
- MXNet::Initializer
- Reference
- Object
Overview
Initializes the weights to a given constant value.
Defined in:
mxnet/initializer.crConstructors
-
.new(value : Float32 | Float64 | NDArray = 0.0)
Creates a new instance.
Instance Method Summary
Instance methods inherited from class MXNet::Initializer
init_array(array : NDArray)
init_array
Class methods inherited from class MXNet::Initializer
create(initializer)
create
Constructor Detail
Creates a new instance.
The value passed in can be a scalar or a NDarray
that matches
the shape of the parameter to be set.
Parameters
- value (
Float
|NDArray
, required) The value to set.