asIndices
Validates this tensor as an index tensor and wraps it into IndexTensor.
For integer storage dtypes, this is a no-op wrap.
For float storage dtypes, checks all elements are mathematically integral when strict is true.
Validates this tensor as an index tensor and wraps it into IndexTensor.
For integer storage dtypes, this is a no-op wrap.
For float storage dtypes, checks all elements are mathematically integral when strict is true.