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

Method IsNestedTuple

tensorflow/compiler/xla/shape_util.cc:375–379  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 2

IsTupleMethod · 0.45
tuple_shapesMethod · 0.45

Tested by

no test coverage detected