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

Method hasIOS15Features

mlmodel/src/Utils.cpp:609–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607}
608
609bool 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
632bool CoreML::hasIOS16Features(const Specification::Model& model) {
633 // New in IOS16 features:

Callers

nothing calls this directly

Calls 1

walkModelAndPipelineFunction · 0.85

Tested by

no test coverage detected