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

Function main

tensorflow/lite/tools/optimize/quantization_utils_test.cc:401–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399} // namespace tflite
400
401int main(int argc, char** argv) {
402 tensorflow::string model_file;
403 const std::vector<tensorflow::Flag> flag_list = {
404 tensorflow::Flag("test_model_file", &model_file,
405 "Path to test tflite model file."),
406 };
407
408 const bool parse_result = tensorflow::Flags::Parse(&argc, argv, flag_list);
409 if (!parse_result) {
410 std::cerr << "Required test_model_file\n";
411 std::abort();
412 }
413 g_test_model_dir =
414 new tensorflow::string(tensorflow::io::Dirname(model_file));
415 ::tensorflow::port::InitMain(argv[0], &argc, &argv);
416 return RUN_ALL_TESTS();
417}

Callers

nothing calls this directly

Calls 4

ParseFunction · 0.85
DirnameFunction · 0.85
FlagClass · 0.50
InitMainFunction · 0.50

Tested by

no test coverage detected