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

Function CheckValidShapeDimensions

tensorflow/lite/toco/tooling_util.cc:656–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654// doesn't make sense.
655template <typename Dims>
656void CheckValidShapeDimensions(const Dims& dims) {
657 if (dims.size() == 1 && dims[0] == 0) {
658 return;
659 }
660 for (const auto& dim : dims) {
661 CHECK_GE(dim, 1);
662 }
663}
664
665void CheckValidShape(const Shape& shape) {
666 CheckValidShapeDimensions(shape.dims());

Callers 2

CheckValidShapeFunction · 0.85
ResolveModelFlagsFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected