Adding MYRIAD_THROUGHPUT_STREAMS support (#3723)

* Adding MYRIAD_THROUGHPUT_STREAMS to the list of plugin's supported config vals (omitted incorrectly) and enabing streams for the myriad devices in the benchmark_app

* docs update and python benchmark_app
This commit is contained in:
Maxim Shevtsov
2020-12-29 19:02:57 +03:00
committed by GitHub
parent 1c3848a96f
commit 4fa7575d2e
7 changed files with 21 additions and 8 deletions

View File

@@ -233,7 +233,8 @@ int main(int argc, char *argv[]) {
slog::warn << "-nstreams default value is determined automatically for " << device << " device. "
"Although the automatic selection usually provides a reasonable performance,"
"but it still may be non-optimal for some cases, for more information look at README." << slog::endl;
device_config[key] = std::string(device + "_THROUGHPUT_AUTO");
if (std::string::npos == device.find("MYRIAD")) // MYRIAD sets the default number of streams implicitly (without _AUTO)
device_config[key] = std::string(device + "_THROUGHPUT_AUTO");
}
if (device_config.count(key))
device_nstreams[device] = device_config.at(key);
@@ -276,6 +277,7 @@ int main(int argc, char *argv[]) {
}
} else if (device == "MYRIAD") {
device_config[CONFIG_KEY(LOG_LEVEL)] = CONFIG_VALUE(LOG_WARNING);
setThroughputStreams();
} else if (device == "GNA") {
if (FLAGS_qb == 8)
device_config[GNA_CONFIG_KEY(PRECISION)] = "I8";