src.model.deeplearn.initializer.initializer
Classes
|
- class src.model.deeplearn.initializer.initializer.Initializer(**kwargs)
- Author:
Alberto M. Esmoris Pena
An initializer can be seen as a routine that initializes the internal state of a layer from a neural network. Typically, initializers receive the shape of the expected output tensor as a parameter.
The Initializer class provides an interface that must be realized by any class that must assume the role of a regularizer inside a neural network.
- __init__(**kwargs)
Initialize the member attributes of the initializer.
- Parameters:
kwargs – The key-word specification to parametrize the initializer.
- __call__(shape, dtype=None)
The initializer’s computation logic.
- Parameters:
shape – The shape of the variable to initializer.
dtype – The type of value.
- Returns:
The initialized variable.
- get_config()
The dictionary specifying how to serialize the initializer.
- Returns:
The dictionary with the necessary data to serialize the initializer.
- Return type:
dict