abstract class MXNet::Initializer
- MXNet::Initializer
- Reference
- Object
Overview
The base class of an initializer.
Custom initializers can be created by subclassing Initializer
and implementing the required function #init_array
. By default,
the created initializer will be registered under its simplified
class name (class.name.split("::").last.downcase
) but it may
also be registered under another name by calling #register
.
class CustomInit < MXNet::Initializer
register :myinit
def init_array(array)
array[0..-1] = 1.0
end
end
Direct Known Subclasses
- MXNet::Initializer::Constant
- MXNet::Initializer::Normal
- MXNet::Initializer::One
- MXNet::Initializer::Uniform
- MXNet::Initializer::Zero
Defined in:
mxnet/initializer.crClass Method Summary
Instance Method Summary
-
#init_array(array : NDArray)
Override to initialize array.