Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apple/coremltools
/ setWidth
Method
setWidth
mlmodel/src/LayerShapeConstraints.cpp:874–876 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
872
}
873
874
void ShapeConstraint::setWidth(size_t val) {
875
_widthRange.setValue(val);
876
}
877
878
bool ShapeConstraint::isValid() const {
879
return true; // we can't create one that is invalid
Callers
15
shapeConvolutionLayer
Method · 0.80
shapePoolingLayer
Method · 0.80
shapeInnerProductLayer
Method · 0.80
shapeEmbeddingLayer
Method · 0.80
shapeBroadcastLayer
Method · 0.80
shapeDotLayer
Method · 0.80
shapeReduceLayer
Method · 0.80
shapeLoadConstantLayer
Method · 0.80
shapeReshapeLayer
Method · 0.80
shapeFlattenLayer
Method · 0.80
shapeSliceLayer
Method · 0.80
shapeSimpleRecurrentLayer
Method · 0.80
Calls
1
setValue
Method · 0.45
Tested by
4
testMessagesAndBuilders
Method · 0.64
testMessagesAreCached
Method · 0.64
testRemove_WithNestedBuilders
Method · 0.64
testRemove_WithNestedMessages
Method · 0.64