legate.core.shape.Shape.__init__#

Shape.__init__(extents: Optional[ExtentLike] = None, ispace: Optional[IndexSpace] = None) None#

Constructs a new shape object

Parameters:
  • extents (int, Iterable[int], or Shape) – Extents to construct the shape object with. Must be passed unless an ispace is given.

  • ispace (IndexSpace, optional) – A Legion index space handle to construct the shape object with. Must not be used by clients explicitly, as they don’t have access to index spaces.