Transpose dimensions of a shape
If no axes are provided, swaps the last two dimensions (like matrix transpose) If axes are provided, permutes dimensions according to the axes array
type Transposed = Transpose<[2, 3, 4]> // [2, 4, 3] - default behaviortype Custom = Transpose<[2, 3, 4], [2, 0, 1]> // [4, 2, 3] - custom permutation Copy
type Transposed = Transpose<[2, 3, 4]> // [2, 4, 3] - default behaviortype Custom = Transpose<[2, 3, 4], [2, 0, 1]> // [4, 2, 3] - custom permutation
Transpose dimensions of a shape
If no axes are provided, swaps the last two dimensions (like matrix transpose) If axes are provided, permutes dimensions according to the axes array