Skip to content

Commit

Permalink
pysnippets removal p2
Browse files Browse the repository at this point in the history
  • Loading branch information
akuporos committed Nov 15, 2023
1 parent 6fbdff6 commit 2127c96
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 193 deletions.
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 @@ -211,39 +185,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
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ Preparation: Import Preprocessing in Python

In order to utilize preprocessing, the following imports must be added.

**Inference Engine API**


.. doxygensnippet:: docs/snippets/ov_preprocessing_migration.py
:language: python
:fragment: imports


**API 2.0**

Expand All @@ -67,13 +60,6 @@ Using Mean and Scale Values

.. tab-set::

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

.. doxygensnippet:: docs/snippets/ov_preprocessing_migration.py
:language: python
:fragment: mean_scale

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

Expand Down Expand Up @@ -124,13 +110,6 @@ Converting Precision and Layout

.. tab-set::

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

.. doxygensnippet:: docs/snippets/ov_preprocessing_migration.py
:language: python
:fragment: conversions

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

Expand Down Expand Up @@ -181,13 +160,6 @@ Using Image Scaling

.. tab-set::

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

.. doxygensnippet:: docs/snippets/ov_preprocessing_migration.py
:language: python
:fragment: image_scale

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

Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from contextlib import redirect_stdout, redirect_stderr


skip_snippets = ["main.py", "__init__.py", "utils.py", "ie_common.py", "ov_common.py"]
skip_snippets = ["main.py", "__init__.py", "utils.py", "ov_common.py"]

def import_python_modules(directory, subdirectory=""):
for item in os.listdir(directory):
Expand Down

0 comments on commit 2127c96

Please sign in to comment.