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

DistributedBufferType

DistributedBufferType​

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

source

Bases: DistributedType[BufferType]

A symbolic type for a mutable buffer distributed across a device mesh.

Analogous to BufferType for single-device buffers. Derives per-device BufferType objects via local_types.

Parameters:

local_types​

property local_types: list[BufferType]

source

The per-device BufferType objects in mesh order.