static */
| 903 | } |
| 904 | |
| 905 | /* static */ void ShapeUtil::ForEachMutableSubshape( |
| 906 | Shape* shape, const MutatingVisitorFunction& func) { |
| 907 | ShapeIndex index; |
| 908 | ForEachMutableSubshapeHelper( |
| 909 | shape, |
| 910 | [&func](Shape* subshape, const ShapeIndex& index) { |
| 911 | func(subshape, index); |
| 912 | return Status::OK(); |
| 913 | }, |
| 914 | &index) |
| 915 | .IgnoreError(); |
| 916 | } |
| 917 | |
| 918 | /* static */ Status ShapeUtil::ForEachSubshapeWithStatus( |
| 919 | const Shape& shape, const StatusVisitorFunction& func) { |
nothing calls this directly
no test coverage detected