MCPcopy Create free account
hub / github.com/Samsung/ONE / entry

Function entry

compiler/circle-eval-diff/driver/Driver.cpp:53–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51} // namespace
52
53int entry(const int argc, char **argv)
54{
55 arser::Arser arser("Compare inference results of two circle models");
56
57 arser::Helper::add_version(arser, print_version);
58
59 arser.add_argument("--first_model").required(true).help("First input model filepath");
60
61 arser.add_argument("--second_model").required(true).help("Second input model filepath");
62
63 arser.add_argument("--first_input_data")
64 .help("Input data filepath for the first model. If not given, circle-eval-diff will run with "
65 "randomly generated data");
66
67 arser.add_argument("--second_input_data")
68 .help("Input data filepath for the second model. If not given, circle-eval-diff will run with "
69 "randomly generated data");
70
71 arser.add_argument("--dump_output_with_prefix")
72 .help("Dump output to files. <prefix> should be given as an argument. "
73 "Outputs are saved in <prefix>.<data_index>.first.output<output_index> and "
74 "<prefix>.<data_index>.second.output<output_index>.");
75
76 arser.add_argument("--print_mae").nargs(0).default_value(false).help("Print Mean Absolute Error");
77
78 arser.add_argument("--print_mape")
79 .nargs(0)
80 .default_value(false)
81 .help("Print Mean Absolute PercentageError");
82
83 arser.add_argument("--print_mpeir")
84 .nargs(0)
85 .default_value(false)
86 .help("Print Mean Peak Error to Interval Ratio");
87
88 arser.add_argument("--print_top1_match")
89 .nargs(0)
90 .default_value(false)
91 .help("Print Mean Top-1 Match Ratio");
92
93 arser.add_argument("--print_top5_match")
94 .nargs(0)
95 .default_value(false)
96 .help("Print Mean Top-5 Match Ratio");
97
98 arser.add_argument("--print_mse").nargs(0).default_value(false).help("Print Mean Squared Error");
99
100 arser.add_argument("--input_data_format")
101 .default_value("h5")
102 .help("Input data format. h5/hdf5 (default) or directory");
103
104 try
105 {
106 arser.parse(argc, argv);
107 }
108 catch (const std::runtime_error &err)
109 {
110 std::cout << err.what() << std::endl;

Callers

nothing calls this directly

Calls 8

to_input_formatFunction · 0.85
add_argumentMethod · 0.80
default_valueMethod · 0.80
evalDiffMethod · 0.80
parseMethod · 0.45
whatMethod · 0.45
emplace_backMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected