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

Method updateHeightRange

mlmodel/src/LayerShapeConstraints.cpp:755–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753}
754
755void ShapeConstraint::updateHeightRange(const ShapeRange& other) {
756 try {
757 _heightRange = _heightRange.intersect(other);
758 }
759 catch (std::runtime_error& e) {
760 std::string err = "Invalid height range in blob " + _name + ". " + e.what();
761 throw std::runtime_error(err);
762 }
763}
764
765void ShapeConstraint::updateWidthRange(const ShapeRange& other) {
766 try {

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