| 630 | } |
| 631 | |
| 632 | bool CoreML::hasIOS16Features(const Specification::Model& model) { |
| 633 | // New in IOS16 features: |
| 634 | // - FLOAT16 array data type |
| 635 | // - GRAYSCALE_FLOAT16 image color space. |
| 636 | // - CoreML6 Opsets for mlProgram models |
| 637 | // |
| 638 | return walkModelAndPipeline( |
| 639 | model, |
| 640 | [](const Specification::Model& m) { |
| 641 | return |
| 642 | hasFloat16MultiArray(m) || |
| 643 | hasGrayscaleFloat16Image(m) || |
| 644 | hasCoreML6Opsets(m); |
| 645 | }); |
| 646 | } |
| 647 | |
| 648 | bool CoreML::hasIOS17Features(const Specification::Model& model) { |
| 649 | // New in IOS17 features: |
nothing calls this directly
no test coverage detected