Skip to main content

Mojo struct

MLAPositionSummary

@register_passable(trivial) struct MLAPositionSummary

Fields

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

Implemented traits

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDestructible, Movable, RegisterPassable, TrivialRegisterPassable

comptime members

__copyinit__is_trivial

comptime __copyinit__is_trivial = True

__del__is_trivial

comptime __del__is_trivial = True

__moveinit__is_trivial

comptime __moveinit__is_trivial = True

Methods

__init__

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

get_start_pos

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

Returns:

UInt32

get_num_keys

static get_num_keys[KVLUTType: MHAOperand](kv_lut: KVLUTType, seq_info: SeqInfo) -> UInt32

Returns:

UInt32

get_score_row

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

Returns:

UInt32

create

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

Was this page helpful?