package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Oct 30, 2023
License: BSD-2-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 8
Opens a new window with list of known importers.
Documentation
¶
Package layernorm implements the Layer Normalization (LayerNorm) i method.
Reference: "Layer normalization" by Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton (2016).
(https://arxiv.org/pdf/1607.06450.pdf)
Model contains the serializable parameters.
New returns a new model with parameters initialized to zeros.
Forward performs the forward step for each input node and returns the result.
y = (x - E\[x\]) / sqrt(VAR\[x\] + [EPS]) * g + b
Source Files
¶
Click to show internal directories.
Click to hide internal directories.