MCPcopy Create free account
hub / github.com/apple/coremltools / operator-

Method operator-

mlmodel/src/LayerShapeConstraints.cpp:72–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72RangeValue RangeValue::operator- (size_t other) const {
73 RangeValue retval;
74 if (_isUnbound)
75 return retval;
76 else {
77 if (other > _val)
78 retval.set(0);
79 else
80 retval.set(_val - other);
81 return retval;
82 }
83}
84
85RangeValue RangeValue::operator- (const RangeValue& other) const {
86 if (other.isUnbound() && !(this->isUnbound())) {

Callers

nothing calls this directly

Calls 9

isUnboundMethod · 0.95
RangeValueClass · 0.85
setLowerMethod · 0.80
setUpperMethod · 0.80
maximumMethod · 0.80
minimumMethod · 0.80
setMethod · 0.65
strMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected