Adjust the order of parsing commandline options to avoid the confusing message about the --perf_options_list flag.
PiperOrigin-RevId: 333711021 Change-Id: I64cc6c867baa608718f08f88884712d241ea18c2
This commit is contained in:
parent
9aff666a8d
commit
d6f2f98875
@ -360,13 +360,13 @@ void BenchmarkPerformanceOptions::Run() {
|
||||
}
|
||||
|
||||
void BenchmarkPerformanceOptions::Run(int argc, char** argv) {
|
||||
// We first parse flags for single-option runs to get information like
|
||||
// parameters of the input model etc.
|
||||
if (single_option_run_->ParseFlags(&argc, argv) != kTfLiteOk) return;
|
||||
|
||||
// Now, we parse flags that are specified for this particular binary.
|
||||
// Parse flags that are supported by this particular binary first.
|
||||
if (!ParseFlags(&argc, argv)) return;
|
||||
|
||||
// Then parse flags for single-option runs to get information like parameters
|
||||
// of the input model etc.
|
||||
if (single_option_run_->ParseFlags(&argc, argv) != kTfLiteOk) return;
|
||||
|
||||
// Now, the remaining are unrecognized flags and we simply print them out.
|
||||
for (int i = 1; i < argc; ++i) {
|
||||
TFLITE_LOG(WARN) << "WARNING: unrecognized commandline flag: " << argv[i];
|
||||
|
Loading…
Reference in New Issue
Block a user