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

[RTTI] Use OV dynamic cast on Android only #28519

Conversation

t-jankowski
Copy link
Contributor

@t-jankowski t-jankowski commented Jan 17, 2025

Details:

OV dynamic casting causes issue in external software with badly formed OV RTTI definitions, so it's replaced with standard dynamic casting, except for Android.

Tickets:

Signed-off-by: Tomasz Jankowski <[email protected]>
@t-jankowski t-jankowski requested a review from a team as a code owner January 17, 2025 13:48
@github-actions github-actions bot added category: Core OpenVINO Core (aka ngraph) category: CPP API OpenVINO CPP API bindings labels Jan 17, 2025
@ilya-lavrenov ilya-lavrenov added this to the 2025.1 milestone Jan 20, 2025
@ilya-lavrenov ilya-lavrenov added the pr: needs tests PR needs tests updating label Jan 20, 2025
@ilya-lavrenov
Copy link
Contributor

Could you please add tests that even w/ wrong RTTI declaration (like in GenAI), such operations / transformations can work on non-Android platforms?

Signed-off-by: Tomasz Jankowski <[email protected]>
Signed-off-by: Tomasz Jankowski <[email protected]>
Signed-off-by: Tomasz Jankowski <[email protected]>
Signed-off-by: Tomasz Jankowski <[email protected]>
@t-jankowski t-jankowski changed the title [Dont merge][POC][RTTI] Use OV dynamic cast on Android only [RTTI] Use OV dynamic cast on Android only Jan 20, 2025
@t-jankowski
Copy link
Contributor Author

Could you please add tests that even w/ wrong RTTI declaration (like in GenAI), such operations / transformations can work on non-Android platforms?

Added.

@ilya-lavrenov
Copy link
Contributor

Can we merge?
I vote to port this change to releases/2025/0

@t-jankowski t-jankowski added this pull request to the merge queue Jan 20, 2025
@ilya-lavrenov ilya-lavrenov self-assigned this Jan 20, 2025
Merged via the queue into openvinotoolkit:master with commit 1ad4863 Jan 20, 2025
184 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Jan 21, 2025
### Details:
- Used standard dynamic casting under the hood of OV dynamic casting. It
drops dependency on OPENVINO_RTTI. Applies to non Android.

### Tickets:
 - CVS-160749

### Backport #28519

Signed-off-by: Tomasz Jankowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Core OpenVINO Core (aka ngraph) category: CPP API OpenVINO CPP API bindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants