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

Method hasIOS16Features

mlmodel/src/Utils.cpp:632–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631
632bool 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
648bool CoreML::hasIOS17Features(const Specification::Model& model) {
649 // New in IOS17 features:

Callers

nothing calls this directly

Calls 4

walkModelAndPipelineFunction · 0.85
hasFloat16MultiArrayFunction · 0.85
hasGrayscaleFloat16ImageFunction · 0.85
hasCoreML6OpsetsFunction · 0.85

Tested by

no test coverage detected