Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs][PyOV] Documentation for Custom Python Operation #25615

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

akuporos
Copy link
Contributor

Details:

  • Extend documentation with python examples

Tickets:

@akuporos akuporos requested a review from a team as a code owner July 18, 2024 05:41
@akuporos akuporos requested review from akopytko and removed request for a team July 18, 2024 05:41
@github-actions github-actions bot added the category: docs OpenVINO documentation label Jul 18, 2024
@akuporos akuporos added this to the 2024.4 milestone Jul 18, 2024
@akuporos akuporos force-pushed the akup/custom-op-docs branch from 073084e to e0f40f9 Compare July 18, 2024 06:55
@mlukasze mlukasze added this pull request to the merge queue Jul 26, 2024
@mlukasze mlukasze removed this pull request from the merge queue due to a manual request Jul 26, 2024
@akuporos akuporos force-pushed the akup/custom-op-docs branch from 638910e to 1c4732f Compare July 31, 2024 21:47
OpenVINO™ Extension API allows you to register custom operations to support models with operations which OpenVINO™ does not support out-of-the-box. This capability requires writing code in C++, so if you are using Python to develop your application you need to build a separate shared library implemented in C++ first and load it in Python using ``add_extension`` API. Please refer to :ref:`Create library with extensions <create_a_library_with_extensions>` for more details on library creation and usage. The remaining part of this document describes how to implement an operation class.
OpenVINO™ Extension API allows you to register custom operations to support models with operations which OpenVINO™ does not support out-of-the-box. While this process historically involved writing C++ code and constructing a separate shared library to be subsequently loaded into Python using the ``add_extension`` API, it is now also possible to implement custom operations directly within the Python API with some known limitations. Operations implemented in python still won't be loaded into the runtime and may be used for building your own Model.

For those who still wish to use C++, the capability to create a shared library with custom operation implementations is maintained. Please refer to :ref:`Create library with extensions <create_a_library_with_extensions>` for more details on library creation and usage. The remaining part of this document describes how to implement an operation class using both the C++ API and Python API.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
For those who still wish to use C++, the capability to create a shared library with custom operation implementations is maintained. Please refer to :ref:`Create library with extensions <create_a_library_with_extensions>` for more details on library creation and usage. The remaining part of this document describes how to implement an operation class using both the C++ API and Python API.
For those who wish to use C++, the capability to create a shared library with custom operation implementations is available. Please refer to :ref:`Create library with extensions <create_a_library_with_extensions>` for more details on library creation and usage. The remaining part of this document describes how to implement an operation class using both the C++ API and Python API.

Copy link
Contributor

This PR will be closed in a week because of 2 weeks of no activity.

@github-actions github-actions bot added the Stale label Aug 30, 2024
@kblaszczak-intel
Copy link
Contributor

Is there anything I can do to help publish this PR?

@github-actions github-actions bot removed the Stale label Sep 5, 2024
@akuporos akuporos requested a review from a team as a code owner September 6, 2024 15:39
kblaszczak-intel and others added 2 commits September 12, 2024 14:18
…penvino-operations.rst

Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
Copy link
Contributor

This PR will be closed in a week because of 2 weeks of no activity.

@github-actions github-actions bot added the Stale label Sep 28, 2024
@github-actions github-actions bot removed the Stale label Sep 29, 2024
Copy link
Contributor

This PR will be closed in a week because of 2 weeks of no activity.

@github-actions github-actions bot added the Stale label Oct 14, 2024
@github-actions github-actions bot removed the Stale label Oct 15, 2024
@ilya-lavrenov ilya-lavrenov removed this from the 2024.4 milestone Oct 21, 2024
@ilya-lavrenov ilya-lavrenov requested a review from slyalin October 21, 2024 07:16
Copy link
Contributor

This PR will be closed in a week because of 2 weeks of no activity.

@github-actions github-actions bot added the Stale label Nov 12, 2024
@akuporos akuporos added no_stale Do not mark as stale and removed Stale labels Nov 13, 2024
@kblaszczak-intel
Copy link
Contributor

Hey everyone, can we finalize this one? It has been hanging for a while and Anastasia did a lot of good work here, would be a shame to let it go to waste. Even if it is not perfect, maybe we could go through with some polishing, merge, publish, and then continue improving in a separate PR?
Let me know if I can help.

@kblaszczak-intel
Copy link
Contributor

@akuporos
@slyalin
Just a nudge ;) Can I help with this one in any way?

@akuporos
Copy link
Contributor Author

Hi @kblaszczak-intel ,

I'd like to complete this PR first, and then return back to this one.
It'd help me to fully complete this PR

@mlukasze mlukasze added the WIP work in progress label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: docs OpenVINO documentation no_stale Do not mark as stale WIP work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants