legate.core.shape.Shape.insert#

Shape.insert(dim: int, new_value: int) Shape#

Inserts a new dimension

Parameters:
  • dim (int) – Location to insert the new dimension

  • new_value (int) – Extent of the new dimension

Returns:

Shape with one more dimension

Return type:

Shape

Notes

Can block on the producer task