| 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; |
| 191 | walkModelAndPipeline(model, [&retval](const auto& m) { |
| 192 | if (m.Type_case() == Specification::Model::kCustomModel) { |
| 193 | retval.push_back(std::make_pair(m.custommodel().classname(), m.custommodel().description())); |
| 194 | } |
| 195 | return false; // Do not stop walking |
| 196 | }); |
| 197 | return retval; |
| 198 | } |
| 199 | |
| 200 | void CoreML::downgradeSpecificationVersion(Specification::Model *pModel) { |
| 201 |
nothing calls this directly
no test coverage detected