static */
| 373 | } |
| 374 | |
| 375 | /* static */ bool ShapeUtil::IsNestedTuple(const Shape& shape) { |
| 376 | return shape.IsTuple() && |
| 377 | absl::c_any_of(shape.tuple_shapes(), |
| 378 | [](const Shape& s) { return s.IsTuple(); }); |
| 379 | } |
| 380 | |
| 381 | /* static */ bool ShapeUtil::IsEmptyTuple(const Shape& shape) { |
| 382 | return shape.IsTuple() && TupleElementCount(shape) == 0; |
nothing calls this directly
no test coverage detected