Skip to main content

Mojo struct

NullMask

@register_passable(trivial) struct NullMask

Mask that's effectively a noop.

Implemented traits

AnyType, Copyable, DevicePassable, ImplicitlyCopyable, MHAMask, Movable, UnknownDestructibility

Aliases

__copyinit__is_trivial

comptime __copyinit__is_trivial = True

__del__is_trivial

comptime __del__is_trivial = True

__moveinit__is_trivial

comptime __moveinit__is_trivial = True

apply_log2e_after_mask

comptime apply_log2e_after_mask = False

check_mask_during_decoding

comptime check_mask_during_decoding = False

device_type

comptime device_type = NullMask

mask_out_of_bound

comptime mask_out_of_bound = True

mask_safe_out_of_bounds

comptime mask_safe_out_of_bounds = True

Methods

get_type_name

static get_type_name() -> String

Returns:

String

name

static name() -> String

Returns:

String

get_device_type_name

static get_device_type_name() -> String

Returns:

String

mask

mask[dtype: DType, width: Int, //, *, element_type: DType = DType.uint32](self, coord: IndexList[4, element_type=element_type], score_vec: SIMD[dtype, width]) -> SIMD[dtype, width]

Returns:

SIMD

status

status[*, element_type: DType = DType.uint32](self, tile_offset: IndexList[2, element_type=element_type], tile_size: IndexList[2, element_type=element_type]) -> TileMaskStatus

Returns:

TileMaskStatus

start_column

start_column[BM: Int, BN: Int, page_size: Int](self, row: UInt32) -> UInt32

Returns:

UInt32

total_iters

total_iters[BM: Int, BN: Int, page_size: Int](self, row: UInt32, num_cols: UInt32) -> UInt32

The total number of column iterations for which this mask returns either `TileMaskStatus.NO_MASK' or 'TileMaskStatus.PARTIAL_MASK'.

Returns:

UInt32

last_masked_set_end

last_masked_set_end[BM: Int, BN: Int, page_size: Int](self, row: UInt32, num_cols: UInt32) -> UInt32

Returns:

UInt32

count_nonfull_sets

static count_nonfull_sets(BM: Int, BN: Int) -> Int

Returns:

Int

masked_set_ends

masked_set_ends[BM: Int, BN: Int, page_size: Int](self, row: UInt32, num_cols: UInt32) -> StaticTuple[UInt32, NullMask.count_nonfull_sets(BM, BN)]

Returns:

StaticTuple

nonfull_sets

static nonfull_sets[BM: Int, BN: Int]() -> StaticTuple[TileMaskStatus, NullMask.count_nonfull_sets(BM, BN)]

Returns:

StaticTuple

Was this page helpful?