Fixed printPerfomanceCounters in speech sample (#5850)

This commit is contained in:
Anton Romanov 2021-05-28 19:20:36 +03:00 committed by GitHub
parent 5e92154422
commit 67c75740bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -443,7 +443,11 @@ void printPerformanceCounters(std::map<std::string, InferenceEngine::InferenceEn
float freq = getGnaFrequencyMHz();
current_units /= freq * 1000;
call_units /= freq;
stream << std::setw(30) << std::left << counter_name.substr(4, counter_name.size() - 1);
if (FLAGS_d.find("GNA") != std::string::npos) {
stream << std::setw(30) << std::left << counter_name.substr(4, counter_name.size() - 1);
} else {
stream << std::setw(30) << std::left << counter_name;
}
stream << std::setw(16) << std::right << current_units;
stream << std::setw(21) << std::right << call_units;
stream << std::endl;