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

Method updateBatchRange

mlmodel/src/LayerShapeConstraints.cpp:735–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

733}
734
735void ShapeConstraint::updateBatchRange(const ShapeRange& other) {
736 try {
737 _batchRange = _batchRange.intersect(other);
738 }
739 catch (std::runtime_error& e) {
740 std::string err = "Invalid batch range in blob " + _name + ". " + e.what();
741 throw std::runtime_error(err);
742 }
743}
744
745void ShapeConstraint::updateChannelRange(const ShapeRange& other) {
746 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