MCPcopy Create free account
hub / github.com/catboost/catboost / CheckFormat

Function CheckFormat

catboost/libs/model/model.cpp:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68static 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
76TFullModel ReadModel(const TString& modelFile, EModelType format) {
77 CheckFormat(format);

Callers 1

ReadModelFunction · 0.85

Calls 2

HasFunction · 0.85

Tested by

no test coverage detected