static */
| 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)); |
nothing calls this directly
no test coverage detected