Skip to content

Conversation

@ericcraw
Copy link

@ericcraw ericcraw commented Jan 6, 2026

Description

Keep behavior consistent between plugin eps and bridge eps: Throw an exception during session creation if an plugin ep fails to initialize.

Motivation and Context

Failure of negative test cases due to a behavior change in ORT commit

@MayureshV1 MayureshV1 requested a review from Copilot January 6, 2026 21:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR restores exception-throwing behavior when plugin execution provider initialization fails, aligning it with the behavior of bridge execution providers. Previously, a failed plugin EP would log an error and return nullptr; now it throws an exception during session creation.

Key Changes:

  • Modified error handling in PluginExecutionProviderFactory::CreateProvider to throw an exception instead of logging and returning nullptr when plugin EP creation fails

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MayureshV1 MayureshV1 self-requested a review January 6, 2026 21:58
Copy link

@MayureshV1 MayureshV1 left a comment

Choose a reason for hiding this comment

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

Looks Good !

@MayureshV1 MayureshV1 merged commit 2ced6f4 into intel:ovep-develop Jan 8, 2026
3 of 5 checks passed
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