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__β
__ne__β
write_toβ
def write_to(self, mut writer: T)
Writes the mask name.
Args:
- βwriter (
T): The writer to write to.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!