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

Method ByteSizeOfTupleIndexTable

tensorflow/compiler/xla/shape_util.cc:641–647  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

639}
640
641/* static */ int64 ShapeUtil::ByteSizeOfTupleIndexTable(const Shape& shape,
642 int64 pointer_size) {
643 TF_DCHECK_OK(ValidateShape(shape));
644 CHECK_EQ(TUPLE, shape.element_type());
645 CHECK_GT(pointer_size, 0);
646 return pointer_size * shape.tuple_shapes_size();
647}
648
649/* static */ int64 ShapeUtil::ByteSizeOfElements(const Shape& shape) {
650 TF_DCHECK_OK(ValidateShape(shape));

Callers

nothing calls this directly

Calls 3

ValidateShapeFunction · 0.85
tuple_shapes_sizeMethod · 0.80
element_typeMethod · 0.45

Tested by

no test coverage detected