* Update md files. Add cpp in docs/examples * Normalize all the line endings * Fix block_id in snippets * Fix utf-8 encoding * Add new folder for snippets * Fix issues with compiling code from snippets * Added conteiner iterator fix
20 lines
595 B
C++
20 lines
595 B
C++
#include <inference_engine.hpp>
|
|
#include <multi-device/multi_device_config.hpp>
|
|
|
|
|
|
int main() {
|
|
using namespace InferenceEngine;
|
|
//! [part2]
|
|
Core ie;
|
|
auto cnnNetwork = ie.ReadNetwork("sample.xml");
|
|
std::string allDevices = "MULTI:";
|
|
std::vector<std::string> availableDevices = ie.GetAvailableDevices();
|
|
for (auto && device : availableDevices) {
|
|
allDevices += device;
|
|
allDevices += ((device == availableDevices[availableDevices.size()-1]) ? "" : ",");
|
|
}
|
|
ExecutableNetwork exeNetwork = ie.LoadNetwork(cnnNetwork, allDevices, {});
|
|
//! [part2]
|
|
return 0;
|
|
}
|