Skip to main content

Mojo struct

OffsetPosition

@register_passable(trivial) struct OffsetPosition[config: MLA_SM100_Decode_Config, KVLUTType: MHAOperand, ragged: Bool, use_valid_length: Bool, is_cache_length_accurate: Bool, ValidLengthType: OptionalPointer]

Fields

  • start_of_seq (Int):
  • end_of_seq (Int):
  • seq_len (Int):
  • q_batch_offset (Int):
  • num_keys (Int):

Implemented traits

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDestructible, Movable

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__(k: KVLUTType, valid_length: UnsafePointer[Scalar[ValidLengthType.dtype], MutAnyOrigin]) -> Self

Was this page helpful?