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

Method setValue

mlmodel/src/LayerShapeConstraints.cpp:464–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462}
463
464void ShapeRange::setValue(size_t val) {
465 if (isValid(val)) {
466 _minimum.set(val);
467 _maximum.set(val);
468 }
469 else {
470 std::stringstream ss;
471 ss << "Invalid setValue " << val << " for range: " << *this << "\n";
472 throw std::runtime_error(ss.str());
473 }
474}
475
476void ShapeRange::setValue(const RangeValue& val) {
477 if (val.isUnbound())

Callers 6

setSequenceMethod · 0.45
setBatchMethod · 0.45
setChannelMethod · 0.45
setHeightMethod · 0.45
setWidthMethod · 0.45
testShapeRangeFunction · 0.45

Calls 3

isUnboundMethod · 0.80
setMethod · 0.65
strMethod · 0.45

Tested by 1

testShapeRangeFunction · 0.36