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

Function isEquivalent

mlmodel/src/Comparison.cpp:168–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 }
167
168 bool isEquivalent(const FeatureDescription& a,
169 const FeatureDescription& b) {
170 if (a.name() != b.name()) {
171 return false;
172 }
173 if (a.type() != b.type()) {
174 return false;
175 }
176 return true;
177 }
178
179 static inline bool hasFlexibleShape(const Specification::ArrayFeatureType &marray) {
180 return marray.ShapeFlexibility_case() != Specification::ArrayFeatureType::SHAPEFLEXIBILITY_NOT_SET;

Callers 2

validateFunction · 0.85
validateTrainingInputsFunction · 0.85

Calls 2

nameMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected