Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove old py api from python snippets and docs #22016

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ Based on the steps, the following code demonstrates how to change the applicatio

.. tab-set::

.. tab-item:: Python
:sync: py

.. doxygensnippet:: docs/snippets/ie_common.py
:language: python
:fragment: ie:create_core

.. tab-item:: C++
:sync: cpp

Expand Down Expand Up @@ -86,13 +79,6 @@ to write extensions. However, you can also load the old extensions to the new Op

.. tab-set::

.. tab-item:: Python
:sync: py

.. doxygensnippet:: docs/snippets/ie_common.py
:language: python
:fragment: ie:load_old_extension

.. tab-item:: C++
:sync: cpp

Expand Down Expand Up @@ -133,13 +119,6 @@ to write extensions. However, you can also load the old extensions to the new Op

.. tab-set::

.. tab-item:: Python
:sync: py

.. doxygensnippet:: docs/snippets/ie_common.py
:language: python
:fragment: ie:read_model

.. tab-item:: C++
:sync: cpp

Expand Down Expand Up @@ -192,13 +171,6 @@ preprocessing may be necessary. See :doc:`preprocessing in API 2.0 <openvino_2_0

.. tab-set::

.. tab-item:: Python
:sync: py

.. doxygensnippet:: docs/snippets/ie_common.py
:language: python
:fragment: ie:compile_model

.. tab-item:: C++
:sync: cpp

Expand Down Expand Up @@ -242,13 +214,6 @@ If you need to configure devices with additional parameters for OpenVINO Runtime

.. tab-set::

.. tab-item:: Python
:sync: py

.. doxygensnippet:: docs/snippets/ie_common.py
:language: python
:fragment: ie:create_infer_request

.. tab-item:: C++
:sync: cpp

Expand Down Expand Up @@ -296,13 +261,6 @@ The Inference Engine API fills inputs with data of the ``I32`` precision (**not*

.. tab-set::

.. tab-item:: Python
:sync: py

.. doxygensnippet:: docs/snippets/ie_common.py
:language: python
:fragment: ie:get_input_tensor

.. tab-item:: C++
:sync: cpp

Expand All @@ -315,13 +273,6 @@ The Inference Engine API fills inputs with data of the ``I32`` precision (**not*

.. tab-set::

.. tab-item:: Python
:sync: py

.. doxygensnippet:: docs/snippets/ie_common.py
:language: python
:fragment: ie:get_input_tensor

.. tab-item:: C++
:sync: cpp

Expand All @@ -334,13 +285,6 @@ The Inference Engine API fills inputs with data of the ``I32`` precision (**not*

.. tab-set::

.. tab-item:: Python
:sync: py

.. doxygensnippet:: docs/snippets/ie_common.py
:language: python
:fragment: ie:get_input_tensor

.. tab-item:: C++
:sync: cpp

Expand All @@ -354,13 +298,6 @@ The Inference Engine API fills inputs with data of the ``I32`` precision (**not*

.. tab-set::

.. tab-item:: Python
:sync: py

.. doxygensnippet:: docs/snippets/ie_common.py
:language: python
:fragment: ie:get_input_tensor

.. tab-item:: C++
:sync: cpp

Expand Down Expand Up @@ -493,13 +430,6 @@ API 2.0 fills inputs with data of the ``I64`` precision (aligned with the origin

.. tab-set::

.. tab-item:: Python
:sync: py

.. doxygensnippet:: docs/snippets/ie_common.py
:language: python
:fragment: ie:inference

.. tab-item:: C++
:sync: cpp

Expand All @@ -512,13 +442,6 @@ API 2.0 fills inputs with data of the ``I64`` precision (aligned with the origin

.. tab-set::

.. tab-item:: Python
:sync: py

.. doxygensnippet:: docs/snippets/ie_common.py
:language: python
:fragment: ie:start_async_and_wait

.. tab-item:: C++
:sync: cpp

Expand Down Expand Up @@ -598,13 +521,6 @@ The Inference Engine API processes outputs as they are of the ``I32`` precision

.. tab-set::

.. tab-item:: Python
:sync: py

.. doxygensnippet:: docs/snippets/ie_common.py
:language: python
:fragment: ie:get_output_tensor

.. tab-item:: C++
:sync: cpp

Expand All @@ -617,13 +533,6 @@ The Inference Engine API processes outputs as they are of the ``I32`` precision

.. tab-set::

.. tab-item:: Python
:sync: py

.. doxygensnippet:: docs/snippets/ie_common.py
:language: python
:fragment: ie:get_output_tensor

.. tab-item:: C++
:sync: cpp

Expand All @@ -636,13 +545,6 @@ The Inference Engine API processes outputs as they are of the ``I32`` precision

.. tab-set::

.. tab-item:: Python
:sync: py

.. doxygensnippet:: docs/snippets/ie_common.py
:language: python
:fragment: ie:get_output_tensor

.. tab-item:: C++
:sync: cpp

Expand All @@ -656,13 +558,6 @@ The Inference Engine API processes outputs as they are of the ``I32`` precision

.. tab-set::

.. tab-item:: Python
:sync: py

.. doxygensnippet:: docs/snippets/ie_common.py
:language: python
:fragment: ie:get_output_tensor

.. tab-item:: C++
:sync: cpp

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,32 +67,6 @@ Setting Configuration Values
:language: cpp
:fragment: executable_network_set_config

.. tab-item:: Python
:sync: py

.. tab-set::

.. tab-item:: Devices
:sync: devices

.. doxygensnippet:: docs/snippets/ov_properties_migration.py
:language: python
:fragment: core_set_config

.. tab-item:: Model Loading
:sync: model-loading

.. doxygensnippet:: docs/snippets/ov_properties_migration.py
:language: python
:fragment: core_load_network

.. tab-item:: Execution
:sync: execution

.. doxygensnippet:: docs/snippets/ov_properties_migration.py
:language: python
:fragment: executable_network_set_config

.. tab-item:: C
:sync: c

Expand Down Expand Up @@ -126,32 +100,6 @@ Setting Configuration Values

.. tab-set::

.. tab-item:: Python
:sync: py

.. tab-set::

.. tab-item:: Devices
:sync: devices

.. doxygensnippet:: docs/snippets/ov_properties_migration.py
:language: python
:fragment: core_set_property

.. tab-item:: Model Loading
:sync: model-loading

.. doxygensnippet:: docs/snippets/ov_properties_migration.py
:language: python
:fragment: core_compile_model

.. tab-item:: Execution
:sync: execution

.. doxygensnippet:: docs/snippets/ov_properties_migration.py
:language: python
:fragment: compiled_model_set_property

.. tab-item:: C++
:sync: cpp

Expand Down Expand Up @@ -213,39 +161,6 @@ Getting Information

.. tab-set::

.. tab-item:: Python
:sync: py

.. tab-set::

.. tab-item:: Device Configuration
:sync: device-configuration

.. doxygensnippet:: docs/snippets/ov_properties_migration.py
:language: python
:fragment: core_get_config

.. tab-item:: Device metrics
:sync: device-metrics

.. doxygensnippet:: docs/snippets/ov_properties_migration.py
:language: python
:fragment: core_get_metric

.. tab-item:: Execution config
:sync: execution-config

.. doxygensnippet:: docs/snippets/ov_properties_migration.py
:language: python
:fragment: executable_network_set_config

.. tab-item:: Execution metrics
:sync: execution-metrics

.. doxygensnippet:: docs/snippets/ov_properties_migration.py
:language: python
:fragment: executable_network_get_metric

.. tab-item:: C++
:sync: cpp

Expand Down Expand Up @@ -318,39 +233,6 @@ Getting Information

.. tab-set::

.. tab-item:: Python
:sync: py

.. tab-set::

.. tab-item:: Device Configuration
:sync: device-configuration

.. doxygensnippet:: docs/snippets/ov_properties_migration.py
:language: python
:fragment: core_get_rw_property

.. tab-item:: Device metrics
:sync: device-metrics

.. doxygensnippet:: docs/snippets/ov_properties_migration.py
:language: python
:fragment: core_get_ro_property

.. tab-item:: Execution config
:sync: execution-config

.. doxygensnippet:: docs/snippets/ov_properties_migration.py
:language: python
:fragment: compiled_model_get_rw_property

.. tab-item:: Execution metrics
:sync: execution-metrics

.. doxygensnippet:: docs/snippets/ov_properties_migration.py
:language: python
:fragment: compiled_model_get_ro_property

.. tab-item:: C++
:sync: cpp

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,6 @@ Model Creation in OpenVINO™ Runtime

OpenVINO™ Runtime with API 2.0 includes the nGraph engine as a common part. The ``ngraph`` namespace has been changed to ``ov``, but all other parts of the ngraph API have been preserved.

The code snippets below show how to change the application code for migration to API 2.0.

nGraph API
####################

.. tab-set::

.. tab-item:: Python
:sync: py

.. doxygensnippet:: docs/snippets/ngraph_snippet.py
:language: Python
:fragment: ngraph:graph

.. tab-item:: C++
:sync: cpp

.. doxygensnippet:: docs/snippets/ngraph.cpp
:language: cpp
:fragment: ngraph:graph


API 2.0
####################
Expand Down
Loading
Loading