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

Method updateWidthRange

mlmodel/src/LayerShapeConstraints.cpp:765–773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763}
764
765void ShapeConstraint::updateWidthRange(const ShapeRange& other) {
766 try {
767 _widthRange = _widthRange.intersect(other);
768 }
769 catch (std::runtime_error& e) {
770 std::string err = "Invalid width range in blob " + _name + ". " + e.what();
771 throw std::runtime_error(err);
772 }
773}
774
775std::string ShapeConstraint::name() const {
776 return _name;

Callers 13

shapeConvolutionLayerMethod · 0.80
shapePoolingLayerMethod · 0.80
shapeCropLayerMethod · 0.80
shapePaddingLayerMethod · 0.80
shapeUpsampleLayerMethod · 0.80
shapeBroadcastLayerMethod · 0.80
shapeReduceLayerMethod · 0.80
shapePermuteLayerMethod · 0.80
shapeConcatLayerMethod · 0.80
shapeSplitLayerMethod · 0.80

Calls 2

intersectMethod · 0.80
whatMethod · 0.45

Tested by

no test coverage detected