MCPcopy Create free account
hub / github.com/apple/coremltools / isValid

Method isValid

mlmodel/src/LayerShapeConstraints.cpp:409–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407
408
409bool ShapeRange::isValid(size_t val) const {
410 return (_minimum <= val) && (_maximum >= val);
411}
412
413bool ShapeRange::isValid(const RangeValue& val) const {
414 return (_minimum <= val) && (_maximum >= val);

Callers 4

testValidCrop2Function · 0.45
testSimpleNNShapeFunction · 0.45
testSimple1DConvFunction · 0.45
testShapeRangeFunction · 0.45

Calls

no outgoing calls

Tested by 4

testValidCrop2Function · 0.36
testSimpleNNShapeFunction · 0.36
testSimple1DConvFunction · 0.36
testShapeRangeFunction · 0.36