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 function

is_static

is_static()​

max.experimental.sharding.per_shard_dim.is_static(d)

source

True if d’s global extent is a static (compile-time) size.

A PerShardDim is judged by its global dim (see global_dim()), so a sharded axis whose global is static reports True even though isinstance(d, StaticDim) would not. Prefer this over isinstance(dim, StaticDim) on a possibly-sharded shape.

Parameters:

d (Dim)

Return type:

bool