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

Method operator/

mlmodel/src/LayerShapeConstraints.cpp:111–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111RangeValue RangeValue::operator/ (size_t other) const {
112 RangeValue retval;
113 if (!_isUnbound) {
114 if (other == 0) {
115 std::stringstream ss;
116 ss << "Dividing range " << *this << " by 0.";
117 throw std::runtime_error(ss.str());
118 }
119 retval.set(_val / other);
120 }
121 return retval;
122}
123
124RangeValue RangeValue::operator/ (const RangeValue& other) const {
125 if (other.isUnbound()) {

Callers

nothing calls this directly

Calls 8

isUnboundMethod · 0.80
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