IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /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. /get-started.md).

Python class

ShardingError

ShardingError​

class max.experimental.sharding.ShardingError

source

Bases: RuntimeError

Raised when a sharding rule cannot place a call.

Covers a rule that declines every placement, operands on different meshes, a malformed rule declaration, a target that would split a size-1 axis, a transfer that would change an Unknown placement, and an op the active auto_reshard() policy refuses to move.