2021-06-01 16:31:29 +03:00
|
|
|
#include <ie_core.hpp>
|
2020-09-22 18:01:48 +03:00
|
|
|
|
|
|
|
|
int main() {
|
2020-10-10 11:19:16 +03:00
|
|
|
InferenceEngine::Core core;
|
|
|
|
|
auto network0 = core.ReadNetwork("sample.xml");
|
|
|
|
|
auto network1 = core.ReadNetwork("sample.xml");
|
2020-09-22 18:01:48 +03:00
|
|
|
//! [part7]
|
|
|
|
|
//these two networks go thru same plugin (aka device) and their requests will not overlap.
|
2020-10-10 11:19:16 +03:00
|
|
|
auto executable_network0 = core.LoadNetwork(network0, "CPU",
|
|
|
|
|
{{InferenceEngine::PluginConfigParams::KEY_EXCLUSIVE_ASYNC_REQUESTS, InferenceEngine::PluginConfigParams::YES}});
|
|
|
|
|
auto executable_network1 = core.LoadNetwork(network1, "GPU",
|
|
|
|
|
{{InferenceEngine::PluginConfigParams::KEY_EXCLUSIVE_ASYNC_REQUESTS, InferenceEngine::PluginConfigParams::YES}});
|
2020-09-22 18:01:48 +03:00
|
|
|
//! [part7]
|
|
|
|
|
return 0;
|
|
|
|
|
}
|