Skip to content

Commit

Permalink
DOCS shift to rst - Model Creation in OpenVINO RUNTIME (#16278)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgolebiewski-intel authored Mar 14, 2023
1 parent a8be566 commit 497b788
Showing 1 changed file with 40 additions and 22 deletions.
62 changes: 40 additions & 22 deletions docs/OV_Runtime_UG/migration_ov_2_0/graph_construction.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,56 @@
# Model Creation in OpenVINO™ Runtime {#openvino_2_0_model_creation}

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.
@sphinxdirective

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
nGraph API
####################

.. tab-set::

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

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

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

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


@sphinxtabset
API 2.0
####################

@sphinxtab{C++}
@snippet docs/snippets/ngraph.cpp ngraph:graph
@endsphinxtab

@sphinxtab{Python}
@snippet docs/snippets/ngraph.py ngraph:graph
@endsphinxtab
.. tab-set::

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

## API 2.0
.. doxygensnippet:: docs/snippets/ov_graph.cpp
:language: cpp
:fragment: ov:graph

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

@sphinxtab{C++}
@snippet docs/snippets/ov_graph.cpp ov:graph
@endsphinxtab
.. doxygensnippet:: docs/snippets/ov_graph.py
:language: Python
:fragment: ov:graph

@sphinxtab{Python}
@snippet docs/snippets/ov_graph.py ov:graph
@endsphinxtab

@endsphinxtabset
Additional Resources
####################

## Additional Resources
* :doc:`Hello Model Creation C++ Sample <openvino_inference_engine_samples_model_creation_sample_README>`
* :doc:`Hello Model Creation Python Sample <openvino_inference_engine_ie_bridges_python_sample_model_creation_sample_README>`

- [Hello Model Creation C++ Sample](../../../samples/cpp/model_creation_sample/README.md)
- [Hello Model Creation Python Sample](../../../samples/python/model_creation_sample/README.md)
@endsphinxdirective

0 comments on commit 497b788

Please sign in to comment.