The final output shape must be allocated with this shape.
| 27 | |
| 28 | // The final output shape must be allocated with this shape. |
| 29 | TensorShape ReductionHelper::out_shape() const { |
| 30 | TensorShape shape; |
| 31 | for (auto size : out_shape_) shape.AddDim(size); |
| 32 | return shape; |
| 33 | } |
| 34 | |
| 35 | TensorShape ReductionHelper::shuffled_shape() { |
| 36 | const int dims = data_reshape_.size(); |