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

Function IsNonEmpty

tensorflow/lite/toco/tooling_util.cc:669–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667}
668
669bool IsNonEmpty(const Shape& shape) {
670 for (int i = 0; i < shape.dimensions_count(); ++i) {
671 if (shape.dims(i) < 1) return false;
672 }
673 return true;
674}
675
676void CheckNonEmptyShapeDimensions(const Shape& shape) {
677 for (int i = 0; i < shape.dimensions_count(); ++i) {

Callers 2

GetLog2BufferSizeFunction · 0.85
ReduceGenericFunction · 0.85

Calls 2

dimensions_countMethod · 0.80
dimsMethod · 0.45

Tested by

no test coverage detected