Python class
DistributedBufferType
DistributedBufferTypeβ
class max.experimental.sharding.DistributedBufferType(dtype, shape, mesh, placements)
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]
The per-device BufferType objects in mesh order.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!