Note remaining raw-array extension in ProcessTensorFlowReshapeOperator().
| 630 | |
| 631 | // Note remaining raw-array extension in ProcessTensorFlowReshapeOperator(). |
| 632 | void ExtendShape(Shape* shape, int new_shape_size) { |
| 633 | CHECK_GE(new_shape_size, shape->dimensions_count()); |
| 634 | const int size_increase = new_shape_size - shape->dimensions_count(); |
| 635 | auto* shape_dims = shape->mutable_dims(); |
| 636 | shape_dims->insert(shape_dims->begin(), size_increase, 1); |
| 637 | } |
| 638 | |
| 639 | // TODO(b/62904716) Remove along with remaining uses. |
| 640 | void UnextendShape(Shape* shape, int new_shape_size) { |
no test coverage detected