Maybe the batch dimension is missing for the tensors you would like to permute (e.g. if you are applying it inside __getitem__), so could you check the shape of the tensor.
Thanks for the feedback regarding the docs. Do you have any suggestion what to add to make the docs more informative?