PytorchBackend.indices#

PytorchBackend.indices(shape, dtype=<class 'int'>)[source]#

Creates an array representing the index grid of an input.

Returns:
BackendArray

The index grid.