Skip to content

Commit

Permalink
Fix for hetero multi python binding with new shared library (microsof…
Browse files Browse the repository at this point in the history
…t#5895)

Co-authored-by: sfatimar <sahar.fatima@intel/com>
  • Loading branch information
sfatimar and sfatimar authored Nov 23, 2020
1 parent 58ea7b3 commit 9164101
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion onnxruntime/python/onnxruntime_pybind_state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -663,8 +663,10 @@ static void RegisterExecutionProviders(InferenceSession* sess, const std::vector
auto it = provider_options_map.find(type);
if (it != provider_options_map.end()) {
for (auto option : it->second) {
if (option.first == "device_type")
if (option.first == "device_type") {
openvino_device_type = option.second;
params.device_type = openvino_device_type.c_str();
}
else if (option.first == "enable_vpu_fast_compile") {
if (option.second == "True") {
params.enable_vpu_fast_compile = true;
Expand Down

0 comments on commit 9164101

Please sign in to comment.