fix bug introduced by PR9130 (#9166)

This commit is contained in:
George Wu 2021-09-23 10:58:33 -07:00 committed by GitHub
parent ddafe50199
commit 0888c6cc59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -576,9 +576,10 @@ std::unique_ptr<IExecutionProvider> CreateExecutionProviderInstance(
}
}
}
auto p = onnxruntime::CreateExecutionProviderFactory_OpenVINO(&params)->CreateProvider();
// Reset global variables config to avoid it being accidentally passed on to the next session
openvino_device_type.clear();
return onnxruntime::CreateExecutionProviderFactory_OpenVINO(&params)->CreateProvider();
return p;
#endif
} else if (type == kNupharExecutionProvider) {
#if USE_NUPHAR