TensorPlay
API symbols_shape_funcs
Copy
View MarkdownDownload .md

tensorplay._shape_funcs.unravel_index

tensorplay._shape_funcs.unravel_index(indices, shape)[source]

Converts flat indices into coordinate tuples (one LongTensor per dim).

Indices wrap around modulo the total size, matching torch semantics.

Ask DeepWiki