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

Function main

tensorflow/lite/tools/optimize/quantize_weights_test.cc:538–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536} // namespace tflite
537
538int main(int argc, char** argv) {
539 tensorflow::string model_file;
540 const std::vector<tensorflow::Flag> flag_list = {
541 tensorflow::Flag("test_model_file", &model_file,
542 "Path to test tflite model file."),
543 };
544
545 const bool parse_result = tensorflow::Flags::Parse(&argc, argv, flag_list);
546 if (!parse_result) {
547 std::cerr << "Required test_model_file\n";
548 std::abort();
549 }
550 g_test_model_dir =
551 new tensorflow::string(tensorflow::io::Dirname(model_file));
552 ::tensorflow::port::InitMain(argv[0], &argc, &argv);
553 return RUN_ALL_TESTS();
554}

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