Skip to content

Commit

Permalink
remove old api from python snippets and docs (#170)
Browse files Browse the repository at this point in the history
* remove old api from python snippets

* pysnippets removal p2

* remove ngraph snippet

* remove old api from docs

* remove migration snippets
  • Loading branch information
akuporos authored Nov 16, 2023
1 parent e73b7a9 commit c7b90e0
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 732 deletions.
6 changes: 0 additions & 6 deletions docs/api/ie_python_api/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,3 @@ OpenVINO Python API
:template: custom-module-template.rst

openvino.frontend

.. toctree::
:maxdepth: 2
:hidden:

compatibility
24 changes: 0 additions & 24 deletions docs/api/ie_python_api/compatibility.rst

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,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 @@ -91,13 +84,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 @@ -146,13 +132,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 @@ -213,13 +192,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 @@ -271,13 +243,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 @@ -333,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 All @@ -359,13 +317,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 @@ -385,13 +336,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 @@ -412,13 +356,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 @@ -558,13 +495,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 @@ -584,13 +514,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 @@ -677,13 +600,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 @@ -703,13 +619,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 @@ -729,13 +638,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 @@ -756,13 +658,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 @@ -65,32 +65,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 @@ -124,32 +98,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 @@ -211,39 +159,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 @@ -316,39 +231,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
Loading

0 comments on commit c7b90e0

Please sign in to comment.