latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.unbind
- tensorplay.functional.unbind(input, dim=0) seq[source]
Removes a tensor dimension.
Returns a tuple of all slices along a given dimension, already without it.
Example:
>>> tensorplay.unbind(tensorplay.tensor([[1, 2, 3], >>> [4, 5, 6], >>> [7, 8, 9]])) (tensor([1, 2, 3]), tensor([4, 5, 6]), tensor([7, 8, 9]))
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

