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

Method copyFrom

mlmodel/src/LayerShapeConstraints.cpp:779–785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

777}
778
779void ShapeConstraint::copyFrom(const ShapeConstraint& other) {
780 _sequenceRange = _sequenceRange.intersect(other.sequenceRange());
781 _batchRange = _batchRange.intersect(other.batchRange());
782 _channelRange = _channelRange.intersect(other.channelRange());
783 _heightRange = _heightRange.intersect(other.heightRange());
784 _widthRange = _widthRange.intersect(other.widthRange());
785}
786
787void ShapeConstraint::copyFromNoBatchSeq(const ShapeConstraint& other) {
788 _channelRange = _channelRange.intersect(other.channelRange());

Callers

nothing calls this directly

Calls 1

intersectMethod · 0.80

Tested by

no test coverage detected