API symbols_shape_funcs
Copy
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.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?
