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).

Python class

AxisAssignment

AxisAssignmentโ€‹

class max.experimental.sharding.AxisAssignment(needed_inputs, output)

source

Bases: NamedTuple

One per-mesh-axis row in an ActionSet.

Reads as: given these per-axis input placements, the output along that axis is output. Picking one AxisAssignment per mesh axis builds a multi-axis Action.

Create new instance of AxisAssignment(needed_inputs, output)

Parameters:

needed_inputsโ€‹

needed_inputs: tuple[Placement, ...]

source

Alias for field number 0

outputโ€‹

output: Placement

source

Alias for field number 1