Compute the output shape after reduction along specified axes
Original tensor shape
Axes to reduce (must be normalized/validated)
Whether to keep reduced dimensions as size 1
type Reduced1 = ReduceShape<[2, 3, 4], [1], false> // [2, 4] (remove axis 1)type Reduced2 = ReduceShape<[2, 3, 4], [1], true> // [2, 1, 4] (keep axis 1 as size 1)type Reduced3 = ReduceShape<[2, 3, 4], [0, 2], false> // [3] (remove axes 0 and 2) Copy
type Reduced1 = ReduceShape<[2, 3, 4], [1], false> // [2, 4] (remove axis 1)type Reduced2 = ReduceShape<[2, 3, 4], [1], true> // [2, 1, 4] (keep axis 1 as size 1)type Reduced3 = ReduceShape<[2, 3, 4], [0, 2], false> // [3] (remove axes 0 and 2)
Compute the output shape after reduction along specified axes