MCPcopy Create free account
hub / github.com/apple/coremltools / loadSpecificationPath

Function loadSpecificationPath

mlmodel/src/Utils.hpp:61–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 }
60
61 static inline Result loadSpecificationPath(Specification::Model& formatObj,
62 const std::string& path) {
63 Model m;
64 Result r = CoreML::Model::load(path, m);
65 if (!r.good()) { return r; }
66 formatObj = m.getProto();
67 return Result();
68 }
69
70 /**
71 * If a model spec does not use features from later specification versions, this will

Callers

nothing calls this directly

Calls 3

ResultClass · 0.85
goodMethod · 0.80
loadFunction · 0.50

Tested by

no test coverage detected