[Samples] Enabled oname for imported models (#7227)

This commit is contained in:
Mikhail Ryzhov 2021-08-25 12:57:44 +03:00 committed by GitHub
parent 059870a3a0
commit 158b630354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -719,10 +719,12 @@ int main(int argc, char* argv[]) {
}
}
if (!FLAGS_m.empty()) {
for (size_t i = 0; i < outputs.size(); i++) {
network.addOutput(outputs[i], ports[i]);
}
}
}
if (!FLAGS_m.empty()) {
slog::info << "Loading model to the device" << slog::endl;
executableNet = ie.LoadNetwork(network, deviceStr, genericPluginConfig);