| 157 | } |
| 158 | |
| 159 | bool CoreML::hasCustomLayer(const Specification::Model& model) { |
| 160 | return walkModelAndPipeline( |
| 161 | model, |
| 162 | [](const auto& m) { |
| 163 | if (const auto *layers = getNNSpec(m)) { |
| 164 | for (const auto& layer: *layers) { |
| 165 | if (layer.layer_case() == Specification::NeuralNetworkLayer::kCustom) { |
| 166 | return true; |
| 167 | } |
| 168 | } |
| 169 | } |
| 170 | return false; |
| 171 | }); |
| 172 | } |
| 173 | |
| 174 | std::vector<StringPair> CoreML::getCustomLayerNamesAndDescriptions(const Specification::Model& model) { |
| 175 | std::vector<std::pair<std::string, std::string> > retval; |
nothing calls this directly
no test coverage detected