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
WorkInfo
struct WorkInfo
Holds the coordinates and validity of a single work tile.
Each work tile is identified by its offset within the prompt, head index, and batch index, plus a flag indicating whether the tile is in bounds.
Fields
- prompt_offset (
UInt32): - head_idx (
UInt32): - prompt_idx (
UInt32): - is_valid_tile (
Bool):
Implemented traits
AnyType,
Copyable,
Deinitable,
ImplicitlyCopyable,
Movable,
RegisterPassable,
TrivialRegisterPassable,
Writable
Methods
is_valid
write_to
def write_to(self, mut writer: T)