* Add Overview page * Revert "Add Overview page" * update auto with cumulative throughput * update formatting * update formatting * update content * update * fix formatting * Update docs/OV_Runtime_UG/auto_device_selection.md Co-authored-by: Chen Peter <peter.chen@intel.com> * update * Update docs/OV_Runtime_UG/auto_device_selection.md Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com> * Update docs/OV_Runtime_UG/multi_device.md Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com> * Update docs/OV_Runtime_UG/auto_device_selection.md Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com> * Update docs/OV_Runtime_UG/auto_device_selection.md Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com> * Update docs/OV_Runtime_UG/auto_device_selection.md * Update docs/OV_Runtime_UG/auto_device_selection.md * Update docs/OV_Runtime_UG/auto_device_selection.md * Update docs/OV_Runtime_UG/auto_device_selection.md * Update docs/OV_Runtime_UG/auto_device_selection.md Co-authored-by: Chen Peter <peter.chen@intel.com> * Update docs/OV_Runtime_UG/auto_device_selection.md * Update docs/OV_Runtime_UG/auto_device_selection.md * Update docs/OV_Runtime_UG/auto_device_selection.md * Update docs/OV_Runtime_UG/auto_device_selection.md * Update docs/OV_Runtime_UG/auto_device_selection.md * update indentation of table Co-authored-by: Chen Peter <peter.chen@intel.com> Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
26 lines
848 B
C++
26 lines
848 B
C++
#include <openvino/openvino.hpp>
|
|
|
|
int main() {
|
|
{
|
|
|
|
//! [part3]
|
|
ov::Core core;
|
|
|
|
// Read a network in IR, PaddlePaddle, or ONNX format:
|
|
std::shared_ptr<ov::Model> model = core.read_model("sample.xml");
|
|
|
|
// Compile a model on AUTO with Performance Hint enabled:
|
|
// To use the “THROUGHPUT” option:
|
|
ov::CompiledModel compiled_model = core.compile_model(model, "AUTO",
|
|
ov::hint::performance_mode(ov::hint::PerformanceMode::THROUGHPUT));
|
|
// To use the “LATENCY” option:
|
|
ov::CompiledModel compiled_mode2 = core.compile_model(model, "AUTO",
|
|
ov::hint::performance_mode(ov::hint::PerformanceMode::LATENCY));
|
|
// To use the “CUMULATIVE_THROUGHPUT” option:
|
|
ov::CompiledModel compiled_mode3 = core.compile_model(model, "AUTO",
|
|
ov::hint::performance_mode(ov::hint::PerformanceMode::CUMULATIVE_THROUGHPUT));
|
|
//! [part3]
|
|
}
|
|
return 0;
|
|
}
|