|
Mila 0.13.48
Deep Neural Network Library
|
Configuration for Layer Normalization component. More...
#include <stdexcept>#include <string>#include <sstream>#include <optional>#include <utility>import Dnn.TensorTypes;import Serialization.Metadata;import Dnn.ComponentConfig;import Dnn.Component;Classes | |
| class | Mila::Dnn::LayerNormConfig |
Namespaces | |
| namespace | Mila |
| Mila main API namespace. | |
| namespace | Mila::Dnn |
Configuration for Layer Normalization component.
Design principle (Mila-wide):
LayerNormConfig supports two mutually exclusive normalization modes selected by constructor overload:
The overloads are unambiguous — shape_t and int64_t cannot collide.
Typical usage: