Skip to content

Commit 634e451

Browse files
MayureshV1Copilot
authored andcommitted
Update onnxruntime/core/providers/openvino/openvino_execution_provider.cc
Co-authored-by: Copilot <[email protected]>
1 parent 397609e commit 634e451

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

onnxruntime/core/providers/openvino/openvino_execution_provider.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ common::Status OpenVINOExecutionProvider::Compile(
216216
}
217217

218218
if (session_context_.so_stop_share_ep_contexts) {
219-
shared_context_->clear();
219+
if (shared_context_) {
220+
shared_context_->clear();
221+
}
220222
}
221223

222224
return status;

0 commit comments

Comments
 (0)