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

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, ImplicitlyCopyable, ImplicitlyDeletable, Movable, RegisterPassable, TrivialRegisterPassable, Writable

Methods​

is_valid​

def is_valid(self) -> Bool

Returns:

Bool

write_to​

def write_to(self, mut writer: T)

Was this page helpful?