[benchmark_app]Show network original I/O info (#10694)
* Show network original I/O info * additional no-name case check * stylefix * Update samples/cpp/benchmark_app/main.cpp Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com> * Update samples/cpp/benchmark_app/main.cpp Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com> Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>
This commit is contained in:
co-authored by
Nadezhda Ageeva
parent
332d27ca82
commit
0b444ab2db
@@ -437,6 +437,9 @@ int main(int argc, char* argv[]) {
|
||||
compiledModel = core.compile_model(FLAGS_m, device_name);
|
||||
auto duration_ms = get_duration_ms_till_now(startTime);
|
||||
slog::info << "Load network took " << double_to_string(duration_ms) << " ms" << slog::endl;
|
||||
slog::info << "Original network I/O parameters:" << slog::endl;
|
||||
printInputAndOutputsInfoShort(compiledModel);
|
||||
|
||||
if (statistics)
|
||||
statistics->add_parameters(
|
||||
StatisticsReport::Category::EXECUTION_RESULTS,
|
||||
@@ -466,6 +469,9 @@ int main(int argc, char* argv[]) {
|
||||
auto model = core.read_model(FLAGS_m);
|
||||
auto duration_ms = get_duration_ms_till_now(startTime);
|
||||
slog::info << "Read network took " << double_to_string(duration_ms) << " ms" << slog::endl;
|
||||
slog::info << "Original network I/O parameters:" << slog::endl;
|
||||
printInputAndOutputsInfoShort(*model);
|
||||
|
||||
if (statistics)
|
||||
statistics->add_parameters(
|
||||
StatisticsReport::Category::EXECUTION_RESULTS,
|
||||
@@ -633,6 +639,9 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
auto duration_ms = get_duration_ms_till_now(startTime);
|
||||
slog::info << "Import network took " << double_to_string(duration_ms) << " ms" << slog::endl;
|
||||
slog::info << "Original network I/O paramteters:" << slog::endl;
|
||||
printInputAndOutputsInfoShort(compiledModel);
|
||||
|
||||
if (statistics)
|
||||
statistics->add_parameters(
|
||||
StatisticsReport::Category::EXECUTION_RESULTS,
|
||||
|
||||
@@ -90,7 +90,6 @@ void printInputAndOutputsInfoShort(const T& network) {
|
||||
out_name += name + " , ";
|
||||
}
|
||||
out_name = out_name.substr(0, out_name.size() - 3);
|
||||
|
||||
} catch (const ov::Exception&) {
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user