| 562 | } |
| 563 | |
| 564 | static bool nonMaxSuppressionUsesFloat32InputsOrOutputs(const Specification::Model& model) { |
| 565 | if (!isNonMaxSuppression(model)) { |
| 566 | // not NMS. |
| 567 | return false; |
| 568 | } |
| 569 | |
| 570 | return anyFeatureDescriptionOfModel( |
| 571 | model, |
| 572 | [](const auto& fd) { |
| 573 | return |
| 574 | (fd.type().Type_case() == Specification::FeatureType::kMultiArrayType) && |
| 575 | (fd.type().multiarraytype().datatype() == Specification::ArrayFeatureType_ArrayDataType_FLOAT32); |
| 576 | }); |
| 577 | } |
| 578 | |
| 579 | bool CoreML::hasIOS14Features(const Specification::Model& model) { |
| 580 | // New IOS14 features: |
no test coverage detected