Reshape a tensor to a new shape Returns the new shape if valid (same total elements), never if invalid
type Reshaped = Reshape<[2, 3, 4], [6, 4]> // [6, 4] - valid (24 = 24)type Invalid = Reshape<[2, 3], [4, 5]> // never - invalid (6 ≠ 20) Copy
type Reshaped = Reshape<[2, 3, 4], [6, 4]> // [6, 4] - valid (24 = 24)type Invalid = Reshape<[2, 3], [4, 5]> // never - invalid (6 ≠ 20)
Reshape a tensor to a new shape Returns the new shape if valid (same total elements), never if invalid