[DOC][CPU] Documentation update (#17784)

This commit is contained in:
Anton Voronov authored and GitHub committed 2023-05-31 10:37:32 +04:00
1 parent 047d2d1d7f
commit 263e51a1be
5 files changed
+67 -11

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
// Copyright (C) 2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <openvino/runtime/core.hpp>
int main() {
//! [ov:execution_mode:part0]
ov::Core core;
// in case of Accuracy
core.set_property("CPU", ov::hint::execution_mode(ov::hint::ExecutionMode::ACCURACY));
// in case of Performance
core.set_property("CPU", ov::hint::execution_mode(ov::hint::ExecutionMode::PERFORMANCE));
//! [ov:execution_mode:part0]
return 0;
}
+12
View File
@@ -0,0 +1,12 @@
# Copyright (C) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from openvino.runtime import Core
#! [ov:execution_mode:part0]
core = Core()
# in case of Accuracy
core.set_property("CPU", {"EXECUTION_MODE_HINT": "ACCURACY"})
# in case of Performance
core.set_property("CPU", {"EXECUTION_MODE_HINT": "PERFORMANCE"})
#! [ov:execution_mode:part0]