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

Function CheckNonEmptyShapeDimensions

tensorflow/lite/toco/tooling_util.cc:676–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674}
675
676void CheckNonEmptyShapeDimensions(const Shape& shape) {
677 for (int i = 0; i < shape.dimensions_count(); ++i) {
678 CHECK_GE(shape.dims()[i], 1) << "shape has dimension 0 at index << " << i
679 << ". shape = " << ShapeToString(shape);
680 }
681}
682
683bool ShapesAgreeUpToBroadcasting(const Shape& shape0, const Shape& shape1) {
684 CheckNonEmptyShapeDimensions(shape0);

Callers 2

ShapesAgreeUpToExtendingFunction · 0.85

Calls 3

dimensions_countMethod · 0.80
ShapeToStringFunction · 0.70
dimsMethod · 0.45

Tested by

no test coverage detected