torch.PermuteShape
export type PermuteShape<
S extends Shape,
Perm extends readonly number[],
> = number extends S['length']
? DynamicShape
: Perm['length'] extends S['length']
? PermuteImpl<S, Perm>
: DynamicShape;Sextends ShapePermextends readonly number[]Apply permutation to shape.