Python function
global_shape_from_local
global_shape_from_local()
max.experimental.sharding.global_shape_from_local(local_shape, mesh, placements)
Derives the global shape from one local shard’s shape and placements.
-
Parameters:
-
Returns:
-
The reconstructed global tensor shape.
-
Raises:
-
NotImplementedError – If
placementscontains a placement type other thanSharded,Replicated, orPartial. -
Return type:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!