| 172 | } |
| 173 | |
| 174 | std::vector<StringPair> CoreML::getCustomLayerNamesAndDescriptions(const Specification::Model& model) { |
| 175 | std::vector<std::pair<std::string, std::string> > retval; |
| 176 | walkModelAndPipeline(model, [&retval](const auto& m) { |
| 177 | if (const auto *layers = getNNSpec(m)) { |
| 178 | for (const auto& layer: *layers) { |
| 179 | if (layer.layer_case() == Specification::NeuralNetworkLayer::kCustom) { |
| 180 | retval.push_back(std::make_pair(layer.custom().classname(), layer.custom().description())); |
| 181 | } |
| 182 | } |
| 183 | } |
| 184 | return false; // Do not stop walking |
| 185 | }); |
| 186 | return retval; |
| 187 | } |
| 188 | |
| 189 | std::vector<std::pair<std::string, std::string> > CoreML::getCustomModelNamesAndDescriptions(const Specification::Model& model) { |
| 190 | std::vector<std::pair<std::string, std::string> > retval; |
nothing calls this directly
no test coverage detected