legate.core.ProcessorRange.__getitem__#
- ProcessorRange.__getitem__(self, key: slice | int) ProcessorRange#
Slices the processor range with a given slicer
- Parameters:
key (slice, int) – Key to slice the processor range by. If the
keyis anint, it is treated like a singleton slice (i.e.,`slice(key, key + 1)`)- Returns:
Processor range after slicing
- Return type:
ProcessorRange