Mojo struct
OrMask
@register_passable(trivial)
struct OrMask[T: MHAMask, S: MHAMask, //, lhs: T, rhs: S]
Mask that's the OR of two masks.
Implemented traits
AnyType
,
ExplicitlyCopyable
,
ImplicitlyCopyable
,
MHAMask
,
Movable
,
UnknownDestructibility
Aliases
__copyinit__is_trivial
alias __copyinit__is_trivial = True
__del__is_trivial
alias __del__is_trivial = True
__moveinit__is_trivial
alias __moveinit__is_trivial = True
apply_log2e_after_mask
alias apply_log2e_after_mask = T.apply_log2e_after_mask if T.apply_log2e_after_mask else S.apply_log2e_after_mask
check_mask_during_decoding
alias check_mask_during_decoding = T.check_mask_during_decoding if T.check_mask_during_decoding else S.check_mask_during_decoding
mask_out_of_bound
alias mask_out_of_bound = S.mask_out_of_bound if T.mask_out_of_bound else T.mask_out_of_bound
mask_safe_out_of_bounds
alias mask_safe_out_of_bounds = S.mask_safe_out_of_bounds if T.mask_safe_out_of_bounds else T.mask_safe_out_of_bounds
Methods
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:
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
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!