| 607 | } |
| 608 | |
| 609 | bool CoreML::hasIOS15Features(const Specification::Model& model) { |
| 610 | // New in IOS15 features: |
| 611 | // - mlProgram proto message |
| 612 | // - new sound print |
| 613 | // |
| 614 | return walkModelAndPipeline( |
| 615 | model, |
| 616 | [](const Specification::Model& m) { |
| 617 | switch (m.Type_case()) { |
| 618 | case Specification::Model::kMlProgram: |
| 619 | return true; |
| 620 | case Specification::Model::kAudioFeaturePrint: |
| 621 | if (m.audiofeatureprint().has_sound()) { |
| 622 | return true; |
| 623 | } |
| 624 | break; |
| 625 | default: |
| 626 | break; |
| 627 | } |
| 628 | return false; |
| 629 | }); |
| 630 | } |
| 631 | |
| 632 | bool CoreML::hasIOS16Features(const Specification::Model& model) { |
| 633 | // New in IOS16 features: |
nothing calls this directly
no test coverage detected