inferno.extensions.initializers package¶
Submodules¶
inferno.extensions.initializers.base module¶
-
class
inferno.extensions.initializers.base.
Initializer
[source]¶ Bases: object
Base class for all initializers.
-
VALID_LAYERS
= {'Conv1d', 'Linear', 'Embedding', 'ConvTranspose1d', 'Conv2d', 'Bilinear', 'Conv3d', 'ConvTranspose2d', 'ConvTranspose3d'}¶
-
-
class
inferno.extensions.initializers.base.
Initialization
(weight_initializer=None, bias_initializer=None)[source]¶
-
class
inferno.extensions.initializers.base.
WeightInitFunction
(init_function, *init_function_args, **init_function_kwargs)[source]¶
-
class
inferno.extensions.initializers.base.
BiasInitFunction
(init_function, *init_function_args, **init_function_kwargs)[source]¶
inferno.extensions.initializers.presets module¶
-
class
inferno.extensions.initializers.presets.
Constant
(constant)[source]¶ Bases: inferno.extensions.initializers.base.Initializer
Initialize with a constant.
-
class
inferno.extensions.initializers.presets.
NormalWeights
(mean=0.0, stddev=1.0, sqrt_gain_over_fan_in=None)[source]¶ Bases: inferno.extensions.initializers.base.Initializer
Initialize weights with random numbers drawn from the normal distribution at mean and stddev.
-
class
inferno.extensions.initializers.presets.
OrthogonalWeightsZeroBias
(orthogonal_gain=1.0)[source]¶