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

Method hasIOS12Features

mlmodel/src/Utils.cpp:476–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474}
475
476bool CoreML::hasIOS12Features(const Specification::Model& model) {
477 // New IOS12 features: flexible shapes, custom model, sequence feature type,
478 // text classifier, word tagger, vision feature print, unsigned integer quantization
479 return walkModelAndPipeline(
480 model,
481 [](const Specification::Model& m) {
482 return
483 hasFlexibleShapes(m) ||
484 isCustomModel(m) ||
485 hasCategoricalSequences(m) ||
486 isAppleTextClassifier(m) ||
487 isAppleWordTagger(m) ||
488 isScenePrint(m) ||
489 hasUnsignedQuantizedWeights(m) ||
490 isNonMaxSuppression(m) ||
491 isBayesianProbitRegressor(m) ||
492 hasIOS12NewNeuralNetworkLayers(m);
493 });
494}
495
496bool CoreML::hasIOS13Features(const Specification::Model& model) {
497 // New IOS13 features:

Callers

nothing calls this directly

Calls 11

walkModelAndPipelineFunction · 0.85
hasFlexibleShapesFunction · 0.85
isCustomModelFunction · 0.85
hasCategoricalSequencesFunction · 0.85
isAppleTextClassifierFunction · 0.85
isAppleWordTaggerFunction · 0.85
isScenePrintFunction · 0.85
isNonMaxSuppressionFunction · 0.85

Tested by

no test coverage detected