MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SliceTuple

Method SliceTuple

tensorflow/compiler/xla/shape_util.cc:405–415  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 3

IsTupleMethod · 0.45
beginMethod · 0.45
tuple_shapesMethod · 0.45

Tested by

no test coverage detected