Files
openvino/src/bindings/python
Sergey Lyalin 5587d59bff Enable creation of custom ops in Python (NodeFactory.add_extension) (#18858)
* [WIP] Added load_extension on Python side

* Added load_extension to NodeFactory as an alternative way to expose them to user (openvino path only, no changes in ngraph legacy path

* Reverted adding load_extensions in openvino.runtime

* Renamed load_extension to add_extension to be aligned with other part of extension API

* Applied code style rules

* Shorter description of NodeFactory.add_extension

* Fixed accidentally deleted indent

* Explicit error when custom op without intpus is attempted to be created, better help for NodeFactory.add_extension (op version clarification)

* Style fixes

* Test to cover NodeFactory.add_extension

* Minor wording changes

* Code style

* Fix code style

* Limit NodeFactory.add_extension test to specific test configurations
2023-08-01 11:53:23 +04:00
..
2021-11-27 11:28:25 +03:00

OpenVINO Python API

OpenVINO Python API is a part of the OpenVINO library. The component is responsible for:

  • Bindings of OpenVINO - allowing users to use the OpenVINO library in their Python code. Python API provides bindings to basic and advanced APIs from OpenVINO Runtime.
  • Extending OpenVINO with pythonic features - on top of direct translations from C++, Python API component:
    • Adds specific extensions to support numpy-based data.
    • Provides support for external frameworks inputs.
    • Provides shortcuts and helpers with more pythonic design.
    • Allows to apply advanced concepts, like shared memory, to take full advantage of OpenVINO.

OpenVINO Python API uses the common codestyle checks which are adjusted to project needs.

Key contacts

If you have any questions, feature requests or want us to review your PRs, send us a message or ping us on GitHub via openvino-ie-python-api-maintainers. You can always directly contact everyone from this group.

Components

OpenVINO PYTHON API has the following structure:

  • docs - folder that contains developer documentation and code examples.
  • src - folder with all source files for Python API.
  • tests - tests directory for current API.
  • tests_compatibility - tests directory for compatibility API.
  • thirdparty - folder that contains third-party modules like pybind11.
  • wheel - wheel-specific directory that contains all specific requirements and files used during wheel creation.

Tutorials

If you want to contribute to OpenVINO Python API, here is the list of learning materials and project guidelines:

See also