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:
get_num_keys
static get_num_keys[KVLUTType: MHAOperand](kv_lut: KVLUTType, seq_info: SeqInfo) -> UInt32
Returns:
get_score_row
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?
Thank you! We'll create more content like this.
Thank you for helping us improve!