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

Method divideAndRoundUp

mlmodel/src/LayerShapeConstraints.cpp:134–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134RangeValue RangeValue::divideAndRoundUp(const RangeValue& other) const {
135
136 if (_isUnbound || other.isUnbound()) {
137 return *this / other;
138 }
139 else if (_val == 0) {
140 return RangeValue(0);
141 }
142 else {
143 return ((_val - 1) / other.value()) + 1;
144 }
145
146}
147
148RangeValue RangeValue::divideAndRoundUp(size_t other) const {
149 if (_isUnbound || other == 0) {

Callers 2

shapePoolingLayerMethod · 0.80
testRangeValDivideFunction · 0.80

Calls 5

RangeValueClass · 0.85
isUnboundMethod · 0.80
setLowerMethod · 0.80
setUpperMethod · 0.80
valueMethod · 0.45

Tested by 1

testRangeValDivideFunction · 0.64