static */
| 403 | } |
| 404 | |
| 405 | /* static */ Shape ShapeUtil::SliceTuple(const Shape& tuple, int64 start, |
| 406 | int64 limit) { |
| 407 | TF_DCHECK_OK(ValidateShapeWithOptionalLayout(tuple)); |
| 408 | CHECK(tuple.IsTuple()); |
| 409 | CHECK_LE(start, TupleElementCount(tuple)); |
| 410 | CHECK_LE(limit, TupleElementCount(tuple)); |
| 411 | |
| 412 | std::vector<Shape> new_elements(tuple.tuple_shapes().begin() + start, |
| 413 | tuple.tuple_shapes().begin() + limit); |
| 414 | return MakeTupleShape(new_elements); |
| 415 | } |
| 416 | |
| 417 | // Returns the shape of a real or imaginary component. |
| 418 | /* static */ Shape ShapeUtil::ComplexComponentShape( |
nothing calls this directly
no test coverage detected