| 135 | } // namespace tflite |
| 136 | |
| 137 | int main(int argc, char** argv) { |
| 138 | std::string model_path; |
| 139 | std::vector<tflite::Flag> flags = { |
| 140 | tflite::Flag::CreateFlag("graph", &model_path, "Path to model file.")}; |
| 141 | g_model_path = &model_path; |
| 142 | const bool parse_result = |
| 143 | tflite::Flags::Parse(&argc, const_cast<const char**>(argv), flags); |
| 144 | if (!parse_result) { |
| 145 | std::cerr << tflite::Flags::Usage(argv[0], flags); |
| 146 | return 1; |
| 147 | } |
| 148 | |
| 149 | ::tflite::LogToStderr(); |
| 150 | ::testing::InitGoogleTest(&argc, argv); |
| 151 | return RUN_ALL_TESTS(); |
| 152 | } |
nothing calls this directly
no test coverage detected