Skip to content

Resolve error messages on exit when using python bindings#583

Merged
saurabhkale17 merged 1 commit intoovep-developfrom
jatin_raise_pr_eric
Feb 18, 2025
Merged

Resolve error messages on exit when using python bindings#583
saurabhkale17 merged 1 commit intoovep-developfrom
jatin_raise_pr_eric

Conversation

@jatinwadhwa921
Copy link

Python bindings don't call the provider factory shutdown method. We relied on this to avoid destruction order issues with statically scoped ov::Core objects.

Refactor ov core and shared context lifetimes such that we don't need to rely on shutdown
calls to manage life times and we avoid a static lifetime of the core.

Python bindings don't call the provider factory shutdown method. We relied on this
to avoid destruction order issues with statically scoped ov::Core objects.

 Refactor ov core and shared context lifetimes such that we don't need to rely on shutdown
 calls to manage life times and we avoid a static lifetime of the core.
@saurabhkale17
Copy link

LGTM

@saurabhkale17 saurabhkale17 reopened this Feb 18, 2025
@saurabhkale17 saurabhkale17 merged commit 7ae6f6d into ovep-develop Feb 18, 2025
7 of 20 checks passed
jatinwadhwa921 added a commit that referenced this pull request Feb 18, 2025
Python bindings don't call the provider factory shutdown method. We relied on this
to avoid destruction order issues with statically scoped ov::Core objects.

 Refactor ov core and shared context lifetimes such that we don't need to rely on shutdown
 calls to manage life times and we avoid a static lifetime of the core.

Co-authored-by: Eric Crawford <[email protected]>
ankitm3k pushed a commit that referenced this pull request Feb 21, 2025
Python bindings don't call the provider factory shutdown method. We relied on this
to avoid destruction order issues with statically scoped ov::Core objects.

 Refactor ov core and shared context lifetimes such that we don't need to rely on shutdown
 calls to manage life times and we avoid a static lifetime of the core.

Co-authored-by: Eric Crawford <[email protected]>
jatinwadhwa921 added a commit that referenced this pull request Feb 21, 2025
Python bindings don't call the provider factory shutdown method. We relied on this
to avoid destruction order issues with statically scoped ov::Core objects.

 Refactor ov core and shared context lifetimes such that we don't need to rely on shutdown
 calls to manage life times and we avoid a static lifetime of the core.

Co-authored-by: Eric Crawford <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants