mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-10 17:37:14 +00:00
perftest: verbose logging if -v is given
This commit is contained in:
parent
8d15ffd8f5
commit
48df19f53d
1 changed files with 2 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in a new issue