API ReferenceAPI Reference·ModulesModules·MlMloa::LayerNormLayerNorm: Layer normalization layer.ClC++ public headers#include <oa/ml/nn/layernorm/layerNorm.h>#include <oa/ml/nn/layernorm/layerNorm.h>Inheritancepublic ModuleOpen class hierarchyOpen class hierarchyPublic MethodsforwardforwardMatrix oa::LayerNorm::forward(const Matrix & inInput)Constructor & Destructor Documentationoa::LayerNorm::LayerNorm( oa::I32 inNormalizedShape, oa::F32 inEps = 1e-5f )SourceSourceNo public source comment is attached to this declaration.ParametersinNormalizedShapeoa::I32—inEpsoa::F32Default: 1e-5fPublic Method DocumentationMatrix oa::LayerNorm::forward( const Matrix & inInput )SourceSourceNo public source comment is attached to this declaration.ParametersinInputconst Matrix &—ReturnsMatrixThe declared return value.
oa::LayerNorm::LayerNorm( oa::I32 inNormalizedShape, oa::F32 inEps = 1e-5f )SourceSourceNo public source comment is attached to this declaration.ParametersinNormalizedShapeoa::I32—inEpsoa::F32Default: 1e-5f
Matrix oa::LayerNorm::forward( const Matrix & inInput )SourceSourceNo public source comment is attached to this declaration.ParametersinInputconst Matrix &—ReturnsMatrixThe declared return value.