# tensorplay.functional.permute Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.permute.html ```python tensorplay.functional.permute(input, dims) → Tensor ``` Returns a view of the original tensor input with its dimensions permuted. Parameters: - input ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – the input tensor. - dims ([tuple](https://docs.python.org/3/builtins/stdtypes.html#tuple) of [int](https://docs.python.org/3/builtins/functions.html#int)) – The desired ordering of dimensions Example ``` >>> x = tensorplay.randn(2, 3, 5) >>> x.size() tensorplay.Size([2, 3, 5]) >>> tensorplay.permute(x, (2, 0, 1)).size() tensorplay.Size([5, 2, 3]) ```