Module norm
Expand description
§Normalization Layers
Users who wish to provide an abstraction over swappable normalization
layers can use the Normalization wrapper, with support for:
Normalization::Batch-BatchNormNormalization::Group-GroupNormNormalization::Instance-InstanceNormNormalization::Layer-LayerNormNormalization::Rms-RmsNorm
NormalizationConfig can be used as a generic normalization policy:
- Construct a config with arbitrary input features (we suggest
0). - Clone and match that config to the target input layer,
using the
NormalizationConfig::with_num_features()method.
Structs§
- Batch
Norm - Applies Batch Normalization over a tensor.
- Batch
Norm Config BatchNormConfiguration.- Batch
Norm Record - The record type for the module.
- Batch
Norm Record Item - The record item type for the module.
- Group
Norm - Applies Group Normalization over a mini-batch of inputs as described in the paper Group Normalization.
- Group
Norm Config - Configuration to create a GroupNorm layer using the init function.
- Group
Norm Record - The record type for the module.
- Group
Norm Record Item - The record item type for the module.
- Instance
Norm - Applies Instance Normalization over a tensor as described in the paper Instance Normalization
- Instance
Norm Config - Configuration to create a InstanceNorm layer using the init function.
- Instance
Norm Record - The record type for the module.
- Instance
Norm Record Item - The record item type for the module.
- Layer
Norm - Applies Layer Normalization over an input tensor as described in the paper Layer Normalization.
- Layer
Norm Config - Configuration to create a LayerNorm layer using the init function.
- Layer
Norm Record - The record type for the module.
- Layer
Norm Record Item - The record item type for the module.
- RmsNorm
- Applies RMS Normalization over an input tensor along the last dimension.
- RmsNorm
Config - Configuration to create a RMS Norm layer using the init function.
- RmsNorm
Record - The record type for the module.
- RmsNorm
Record Item - The record item type for the module.
Enums§
- Normalization
- Normalization Layer Wrapper
- Normalization
Config - [‘Normalization’] Configuration.
- Normalization
Record - The record type for the module.
- Normalization
Record Item - The record item type for the module.