Skip to main content

Mojo struct

MLA_Decode_Pack

@register_passable(trivial) struct MLA_Decode_Pack[ValidLengthType: OptionalPointer, MaskType: MHAMask, ScoreModType: ScoreModTrait]

Fields

  • mask (MaskType):
  • score_mod (ScoreModType):
  • valid_length (ValidLengthType):

Implemented traits

AnyType, Copyable, DevicePassable, ImplicitlyCopyable, ImplicitlyDestructible, Movable

comptime members

__copyinit__is_trivial

comptime __copyinit__is_trivial = ValidLengthType.__copyinit__is_trivial if ScoreModType.__copyinit__is_trivial if MaskType.__copyinit__is_trivial else MaskType.__copyinit__is_trivial else ScoreModType.__copyinit__is_trivial if MaskType.__copyinit__is_trivial else MaskType.__copyinit__is_trivial

__del__is_trivial

comptime __del__is_trivial = ValidLengthType.__del__is_trivial if ScoreModType.__del__is_trivial if MaskType.__del__is_trivial else MaskType.__del__is_trivial else ScoreModType.__del__is_trivial if MaskType.__del__is_trivial else MaskType.__del__is_trivial

__moveinit__is_trivial

comptime __moveinit__is_trivial = ValidLengthType.__moveinit__is_trivial if ScoreModType.__moveinit__is_trivial if MaskType.__moveinit__is_trivial else MaskType.__moveinit__is_trivial else ScoreModType.__moveinit__is_trivial if MaskType.__moveinit__is_trivial else MaskType.__moveinit__is_trivial

device_type

comptime device_type = MLA_Decode_Pack[ValidLengthType, MaskType, ScoreModType]

Methods

__init__

__init__(mask: MaskType, score_mod: ScoreModType, valid_length: ValidLengthType) -> Self

get_type_name

static get_type_name() -> String

Returns:

String

get_device_type_name

static get_device_type_name() -> String

Returns:

String

Was this page helpful?