-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOCS shift to rst - Model Creation in OpenVINO RUNTIME (#16278)
- Loading branch information
1 parent
a8be566
commit 497b788
Showing
1 changed file
with
40 additions
and
22 deletions.
There are no files selected for viewing
62 changes: 40 additions & 22 deletions
62
docs/OV_Runtime_UG/migration_ov_2_0/graph_construction.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |