legate.core.shape.Shape.map#

Shape.map(mapping: tuple[int, ...]) Shape#

Applies a mapping to each extent in the shape

Parameters:

maping (tuple[int]) – New values for dimensions

Returns:

Shape with the extents replaced

Return type:

Shape

Notes

Can block on the producer task