legate.core.ProcessorRange.__getitem__#

ProcessorRange.__getitem__()#

Slices the processor range with a given slicer

Parameters:

key (slice, int) – Key to slice the processor range by. If the key is an int, it is treated like a singleton slice (i.e., `slice(key, key + 1)`)

Returns:

Processor range after slicing

Return type:

ProcessorRange