Permute class torchvision.ops.Permute(dims: list[int])[source] This module returns a view of the tensor input with its dimensions permuted. Parameters: dims (List[) – The desired ordering of dimensions