Added common ov::execution_mode hint (#15048)
* [GPU] Added common exec mode hint and gpu support * Add ov::inference precision and update usages. Deprecate ov::hint::inference_precision property * [GPU] Execution mode tests and fixes * Fixed code style * Moved execution_mode test to common. Fixes for python API * Remove deprecations for hint::inference_precision and just keep both * Fix test
This commit is contained in:
committed by
GitHub
parent
53e699eaba
commit
2201a5f83e
@@ -6,7 +6,7 @@ using namespace InferenceEngine;
|
||||
ov::Core core;
|
||||
auto network = core.read_model("sample.xml");
|
||||
auto exec_network = core.compile_model(network, "CPU");
|
||||
auto inference_precision = exec_network.get_property(ov::hint::inference_precision);
|
||||
auto inference_precision = exec_network.get_property(ov::inference_precision);
|
||||
//! [part1]
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -4,7 +4,7 @@ int main() {
|
||||
using namespace InferenceEngine;
|
||||
//! [part2]
|
||||
ov::Core core;
|
||||
core.set_property("CPU", ov::hint::inference_precision(ov::element::f32));
|
||||
core.set_property("CPU", ov::inference_precision(ov::element::f32));
|
||||
//! [part2]
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user