* update multi document Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com> * update Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com> * update snippets ov::enableProfile Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com> * fix build issue Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com> * use Anymap in snippets Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com> * fix format and set property Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com> * update python Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com> * try fo fix test document issue Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com> * removed NEW IE-CENTRIC API and upated set_property Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com> * update ov::optimal_number_of_infer_requests Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>
17 lines
503 B
C++
17 lines
503 B
C++
#include <openvino/openvino.hpp>
|
|
|
|
int main() {
|
|
//! [part2]
|
|
ov::Core core;
|
|
std::shared_ptr<ov::Model> model = core.read_model("sample.xml");
|
|
std::string allDevices = "MULTI:";
|
|
std::vector<std::string> availableDevices = core.get_available_devices();
|
|
for (auto && device : availableDevices) {
|
|
allDevices += device;
|
|
allDevices += ((device == availableDevices[availableDevices.size()-1]) ? "" : ",");
|
|
}
|
|
ov::CompiledModel compileModel = core.compile_model(model, allDevices);
|
|
//! [part2]
|
|
return 0;
|
|
}
|