MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / main

Function main

tensorflow/lite/tools/benchmark/benchmark_test.cc:137–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135} // namespace tflite
136
137int 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}

Callers

nothing calls this directly

Calls 4

CreateFlagFunction · 0.85
ParseFunction · 0.85
UsageFunction · 0.85
LogToStderrFunction · 0.85

Tested by

no test coverage detected