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

Method updateChannelRange

mlmodel/src/LayerShapeConstraints.cpp:745–753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

743}
744
745void ShapeConstraint::updateChannelRange(const ShapeRange& other) {
746 try {
747 _channelRange = _channelRange.intersect(other);
748 }
749 catch (std::runtime_error& e) {
750 std::string err = "Invalid channel range in blob " + _name + ". " + e.what();
751 throw std::runtime_error(err);
752 }
753}
754
755void ShapeConstraint::updateHeightRange(const ShapeRange& other) {
756 try {

Callers 15

shapePoolingLayerMethod · 0.80
shapeCropLayerMethod · 0.80
shapePaddingLayerMethod · 0.80
shapeUpsampleLayerMethod · 0.80
shapeBroadcastLayerMethod · 0.80
shapeReduceLayerMethod · 0.80
shapeFlattenLayerMethod · 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