Skip to content

Commit

Permalink
perftest: verbose logging if -v is given
Browse files Browse the repository at this point in the history
  • Loading branch information
letmaik authored and snnn committed Jun 18, 2019
1 parent 8d15ffd commit 48df19f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onnxruntime/test/perftest/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ int real_main(int argc, char* argv[]) {
}
Ort::Env env{nullptr};
try {
OrtLoggingLevel logging_level = ORT_LOGGING_LEVEL_WARNING;
OrtLoggingLevel logging_level = test_config.run_config.f_verbose
? ORT_LOGGING_LEVEL_VERBOSE : ORT_LOGGING_LEVEL_WARNING;
env = Ort::Env(logging_level, "Default");
} catch (const Ort::Exception& e) {
fprintf(stderr, "Error creating environment: %s \n", e.what());
Expand Down

0 comments on commit 48df19f

Please sign in to comment.