Rearrange operation with einops pattern-based transformation
Creates a new view of the tensor with dimensions rearranged according to an einops pattern string.
type A = TensorStorage<Float32, [2, 3]>;type B = RearrangeOp<A, 'h w -> w h'>; // Shape: [3, 2]type C = RearrangeOp<A, 'h w -> (h w)'>; // Shape: [6] Copy
type A = TensorStorage<Float32, [2, 3]>;type B = RearrangeOp<A, 'h w -> w h'>; // Shape: [3, 2]type C = RearrangeOp<A, 'h w -> (h w)'>; // Shape: [6]
Rearrange operation with einops pattern-based transformation
Creates a new view of the tensor with dimensions rearranged according to an einops pattern string.