| 66 | } |
| 67 | |
| 68 | static void CheckFormat(EModelType format) { |
| 69 | ReferenceMainFactoryRegistrators(); |
| 70 | CB_ENSURE( |
| 71 | NCB::TModelLoaderFactory::Has(format), |
| 72 | "Model format " << format << " deserialization not supported or missing. Link with catboost/libs/model/model_export if you need CoreML or JSON" |
| 73 | ); |
| 74 | } |
| 75 | |
| 76 | TFullModel ReadModel(const TString& modelFile, EModelType format) { |
| 77 | CheckFormat(format); |
no test coverage detected