API ReferenceAPI Reference·ModulesModules·MlMloa::RopeRotary position embedding over a flattened [tokens, heads * head_dim] input.ClC++ public headers#include <oa/ml/nn/rope/rope.h>#include <oa/ml/nn/rope/rope.h>Inheritancepublic ModuleOpen class hierarchyOpen class hierarchyPublic Methodsforwardforwardoa::Matrix oa::Rope::forward(const oa::Matrix & inInput)Constructor & Destructor Documentationoa::Rope::Rope( oa::I32 inNumHeads, oa::I32 inHeadDim, oa::F32 inThetaBase = 10000.0F )SourceSourceNo public source comment is attached to this declaration.ParametersinNumHeadsoa::I32—inHeadDimoa::I32—inThetaBaseoa::F32Default: 10000.0FPublic Method Documentationoa::Matrix oa::Rope::forward( const oa::Matrix & inInput )SourceSourceNo public source comment is attached to this declaration.ParametersinInputconst oa::Matrix &—Returnsoa::MatrixThe declared return value.
oa::Rope::Rope( oa::I32 inNumHeads, oa::I32 inHeadDim, oa::F32 inThetaBase = 10000.0F )SourceSourceNo public source comment is attached to this declaration.ParametersinNumHeadsoa::I32—inHeadDimoa::I32—inThetaBaseoa::F32Default: 10000.0F
oa::Matrix oa::Rope::forward( const oa::Matrix & inInput )SourceSourceNo public source comment is attached to this declaration.ParametersinInputconst oa::Matrix &—Returnsoa::MatrixThe declared return value.