static */
| 805 | } |
| 806 | |
| 807 | /* static */ Shape* ShapeUtil::GetMutableSubshape(Shape* shape, |
| 808 | ShapeIndexView index) { |
| 809 | Shape* return_shape = shape; |
| 810 | for (auto i : index) { |
| 811 | CHECK(return_shape->IsTuple()); |
| 812 | return_shape = return_shape->mutable_tuple_shapes(i); |
| 813 | } |
| 814 | return return_shape; |
| 815 | } |
| 816 | |
| 817 | /* static */ |
| 818 | bool ShapeUtil::IsLeafIndex(const Shape& shape, const ShapeIndex& index) { |
nothing calls this directly
no test coverage detected