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

Method updateSequenceRange

mlmodel/src/LayerShapeConstraints.cpp:725–733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723}
724
725void ShapeConstraint::updateSequenceRange(const ShapeRange& other) {
726 try {
727 _sequenceRange = _sequenceRange.intersect(other);
728 }
729 catch (std::runtime_error& e) {
730 std::string err = "Invalid sequence range in blob " + _name + ". " + e.what();
731 throw std::runtime_error(err);
732 }
733}
734
735void ShapeConstraint::updateBatchRange(const ShapeRange& other) {
736 try {

Callers 15

shapeConvolutionLayerMethod · 0.80
shapePoolingLayerMethod · 0.80
shapeEmbeddingLayerMethod · 0.80
shapeCropLayerMethod · 0.80
shapePaddingLayerMethod · 0.80
shapeUpsampleLayerMethod · 0.80
shapeBroadcastLayerMethod · 0.80
shapeDotLayerMethod · 0.80
shapeReduceLayerMethod · 0.80
shapeReshapeLayerMethod · 0.80
shapeFlattenLayerMethod · 0.80

Calls 2

intersectMethod · 0.80
whatMethod · 0.45

Tested by

no test coverage detected