Skip to main content

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.