diff --git a/docs/OV_Runtime_UG/supported_plugins/CPU.md b/docs/OV_Runtime_UG/supported_plugins/CPU.md index fbbada28bcf..d2a676f7746 100644 --- a/docs/OV_Runtime_UG/supported_plugins/CPU.md +++ b/docs/OV_Runtime_UG/supported_plugins/CPU.md @@ -124,10 +124,22 @@ Inference Precision Hint If the model has been converted to ``bf16``, the ``ov::hint::inference_precision`` is set to ``ov::element::bf16`` and can be checked via the ``ov::CompiledModel::get_property`` call. The code below demonstrates how to get the element type: -.. doxygensnippet:: docs/snippets/cpu/Bfloat16Inference1.cpp - :language: cpp - :fragment: [part1] +.. tab-set:: + .. tab-item:: C++ + :sync: cpp + + .. doxygensnippet:: docs/snippets/cpu/Bfloat16Inference1.cpp + :language: cpp + :fragment: [part1] + + .. tab-item:: Python + :sync: py + + .. doxygensnippet:: docs/snippets/cpu/Bfloat16Inference.py + :language: py + :fragment: [part1] + To infer the model in ``f32`` precision instead of ``bf16`` on targets with native ``bf16`` support, set the ``ov::hint::inference_precision`` to ``ov::element::f32``.