| 474 | } |
| 475 | |
| 476 | bool 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 | |
| 496 | bool CoreML::hasIOS13Features(const Specification::Model& model) { |
| 497 | // New IOS13 features: |
nothing calls this directly
no test coverage detected