IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo struct

MaskName

struct MaskName

A tile's masking status.

Fields​

  • ​name (String):

Implemented traits​

AnyType, ImplicitlyDeletable, Writable

comptime members​

CAUSAL​

comptime CAUSAL = MaskName(String("causal"))

CAUSAL_PADDING​

comptime CAUSAL_PADDING = MaskName(String("causal_padding"))

CHUNKED​

comptime CHUNKED = MaskName(String("chunked"))

CHUNKED_CAUSAL​

comptime CHUNKED_CAUSAL = MaskName(String("chunked_causal"))

MATERIALIZED​

comptime MATERIALIZED = MaskName(String("materialized"))

NULL​

comptime NULL = MaskName(String("null"))

SLIDING_WINDOW_CAUSAL​

comptime SLIDING_WINDOW_CAUSAL = MaskName(String("sliding_window_causal"))

SLIDING_WINDOW_NONCAUSAL​

comptime SLIDING_WINDOW_NONCAUSAL = MaskName(String("sliding_window_noncausal"))

Methods​

__init__​

def __init__(out self, name: String)

__eq__​

def __eq__(self, rhs: Self) -> Bool

Returns:

Bool

def __eq__(self, rhs: String) -> Bool

Returns:

Bool

__ne__​

def __ne__(self, rhs: Self) -> Bool

Returns:

Bool

write_to​

def write_to(self, mut writer: T)

Writes the mask name.

Args:

  • ​writer (T): The writer to write to.