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

DistributedType

DistributedType​

class max.experimental.sharding.DistributedType(dtype, shape, mesh, placements)

source

Bases: Generic[T], ABC

Shared state and shard-shape logic for distributed type descriptors.

Not intended for direct use. See DistributedTensorType and DistributedBufferType.

Parameters:

dtype​

dtype: DType

source

local_types​

abstract property local_types: list[T]

source

The per-device types in mesh order.

mesh​

mesh: DeviceMesh

source

placements​

placements: tuple[Placement, ...]

source

rank​

property rank: int

source

The rank (number of dimensions) of the global tensor.

shape​

shape: Shape

source