For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
MaskName
struct MaskName
A canonical string name identifying a mask type.
Fields
- name (
String):
Implemented traits
AnyType,
Deinitable,
Movable,
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.