Python class
DistributedType
DistributedTypeβ
class max.experimental.sharding.DistributedType(dtype, shape, mesh, placements)
Shared state and shard-shape logic for distributed type descriptors.
Not intended for direct use. See DistributedTensorType and
DistributedBufferType.
-
Parameters:
-
- dtype (DType)
- shape (Shape)
- mesh (DeviceMesh)
- placements (tuple[Placement, ...])
dtypeβ
dtype: DType
local_typesβ
abstract property local_types: list[T]
The per-device types in mesh order.
meshβ
mesh: DeviceMesh
placementsβ
rankβ
property rank: int
The rank (number of dimensions) of the global tensor.
shapeβ
shape: Shape
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!