legate.core.Shape.__getitem__#
- Shape.__getitem__()#
Returns the extent of a given dimension
- Parameters:
idx – Dimension index
- Returns:
Extent of the chosen dimension
- Return type:
- Raises:
IndexError – If the dimension index is out-of-range
Notes
If the shape is of an unbound array or store, the call blocks the execution until the shape becomes ready.