Imported Upstream version 1.4.0
[platform/core/ml/nnfw.git] / compiler / luci / tester / src / Model.h
1 #ifndef __TESTER_MODEL_H__
2 #define __TESTER_MODEL_H__
3
4 #include <mio/circle/schema_generated.h>
5
6 #include <memory>
7
8 namespace luci
9 {
10
11 struct Model
12 {
13   virtual ~Model() = default;
14
15   virtual const ::circle::Model *model(void) = 0;
16 };
17
18 /**
19  * @brief Load Circle model (as a raw Model) from a given path
20  *
21  * @note May return a nullptr
22  */
23 std::unique_ptr<Model> load_model(const std::string &path);
24
25 } // namespace luci
26
27 #endif // __TESTER_MODEL_H__