| 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 |