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

Method setUpper

mlmodel/src/LayerShapeConstraints.cpp:442–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442void ShapeRange::setUpper(size_t val) {
443 if (isValid(val)) {
444 _maximum.set(val);
445 }
446 else {
447 std::stringstream ss;
448 ss << "Invalid setUpper " << val << " for range: " << *this << "\n";
449 throw std::runtime_error(ss.str());
450 }
451}
452
453void ShapeRange::setUpper(const RangeValue& val) {
454 if (isValid(val)) {

Callers 7

operator+Method · 0.80
operator-Method · 0.80
operator*Method · 0.80
operator/Method · 0.80
divideAndRoundUpMethod · 0.80
intersectMethod · 0.80
unifyMethod · 0.80

Calls 2

setMethod · 0.65
strMethod · 0.45

Tested by

no test coverage detected