Transpose operation storage transformation
Default behavior: swaps the last two dimensions (matrix transpose) For <2D tensors: returns the tensor unchanged
type A = TensorStorage<Float32, [2, 3, 4]>; // Shape: [2, 3, 4]type B = TransposeOp<A>; // Shape: [2, 4, 3]type C = TensorStorage<Float32, [5]>; // 1D tensortype D = TransposeOp<C>; // Shape: [5] (unchanged) Copy
type A = TensorStorage<Float32, [2, 3, 4]>; // Shape: [2, 3, 4]type B = TransposeOp<A>; // Shape: [2, 4, 3]type C = TensorStorage<Float32, [5]>; // 1D tensortype D = TransposeOp<C>; // Shape: [5] (unchanged)
Transpose operation storage transformation
Default behavior: swaps the last two dimensions (matrix transpose) For <2D tensors: returns the tensor unchanged