Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update onnxruntime/core/session/plugin_ep/ep_plugin_provider_interfac…
…es.cc

Co-authored-by: Edward Chen <[email protected]>
  • Loading branch information
adrianlizarraga and edgchen1 authored Sep 25, 2025
commit 0010eabdee8cc08bfcfedab8f32759e561e0dd21
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ static const Node* FindFirstNodeAssignedToOtherEP(const std::string& ep_type,
gsl::span<const EpNode* const> ep_nodes) {
auto node_iter = std::find_if(ep_nodes.begin(), ep_nodes.end(),
[&ep_type](const EpNode* node) -> bool {
return node->GetInternalNode().GetExecutionProviderType() != ep_type;
const auto& node_ep_type = node->GetInternalNode().GetExecutionProviderType();
return !node_ep_type.empty() && node_ep_type != ep_type;
});

return node_iter != ep_nodes.end() ? &(*node_iter)->GetInternalNode() : nullptr;
Expand Down
Loading