IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo struct

MLAPositionSummary

struct MLAPositionSummary

Fields

  • num_keys (UInt32):
  • score_row (UInt32):

Implemented traits

AnyType, Copyable, Deinitable, ImplicitlyCopyable, Movable, RegisterPassable, TrivialRegisterPassable

Methods

__init__

def __init__(num_keys: UInt32, score_row: UInt32) -> Self

get_num_keys_and_start_pos

static def get_num_keys_and_start_pos[KRopeType: MHAOperand, //, _ndbuffer_mha_operand: Bool](k_rope_lut: KRopeType, seq_info: SeqInfo) -> Tuple[UInt32, UInt32]

Returns:

Tuple[UInt32, UInt32]

get_score_row

static def get_score_row(seq_info: SeqInfo, start_pos: UInt32) -> UInt32

Returns:

UInt32

create

static def create[KRopeType: MHAOperand, //, _ndbuffer_mha_operand: Bool](k_rope_lut: KRopeType, seq_info: SeqInfo) -> Self