tensorly.transpose

transpose(tensor)

Permute the dimensions of a tensor.

Parameters:tensor : tensor