From 02b921373609a56493496d16f3b8770da69872e4 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Mon, 20 Sep 2021 20:39:17 -0700 Subject: [PATCH] Fix a bug for Openvino Python binding (#9130) --- onnxruntime/python/onnxruntime_pybind_state.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/onnxruntime/python/onnxruntime_pybind_state.cc b/onnxruntime/python/onnxruntime_pybind_state.cc index 2a713fad30..96f4882e82 100644 --- a/onnxruntime/python/onnxruntime_pybind_state.cc +++ b/onnxruntime/python/onnxruntime_pybind_state.cc @@ -576,10 +576,9 @@ std::unique_ptr CreateExecutionProviderInstance( } } } - - return onnxruntime::CreateExecutionProviderFactory_OpenVINO(¶ms)->CreateProvider(); // Reset global variables config to avoid it being accidentally passed on to the next session openvino_device_type.clear(); + return onnxruntime::CreateExecutionProviderFactory_OpenVINO(¶ms)->CreateProvider(); #endif } else if (type == kNupharExecutionProvider) { #if USE_NUPHAR