Skip to content

Commit

Permalink
Change default flag value for OpenVINO (#252)
Browse files Browse the repository at this point in the history
* Change default flag value for OpenVINO

* Change default flag value for OpenVINO
  • Loading branch information
mc-nv authored and tanmayv25 committed May 29, 2024
1 parent 48cc4f1 commit 288e61d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/onnxruntime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ ModelState::LoadModel(
need_lock = true;
OrtOpenVINOProviderOptions openvino_options;
openvino_options.device_type =
"CPU_FP32"; // device_type default is CPU_FP32
"CPU"; // device_type default is CPU

RETURN_IF_ORT_ERROR(
ort_api->SessionOptionsAppendExecutionProvider_OpenVINO(
Expand Down
4 changes: 2 additions & 2 deletions tools/gen_ort_dockerfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def dockerfile_for_linux(output_file):
ep_flags += " --allow_running_as_root"

if FLAGS.ort_openvino is not None:
ep_flags += " --use_openvino CPU_FP32"
ep_flags += " --use_openvino CPU"

if target_platform() == "igpu":
ep_flags += (
Expand Down Expand Up @@ -418,7 +418,7 @@ def dockerfile_for_windows(output_file):
if FLAGS.tensorrt_home is not None:
ep_flags += ' --tensorrt_home "{}"'.format(FLAGS.tensorrt_home)
if FLAGS.ort_openvino is not None:
ep_flags += " --use_openvino CPU_FP32"
ep_flags += " --use_openvino CPU"

df += """
WORKDIR /workspace/onnxruntime
Expand Down

0 comments on commit 288e61d

Please sign in to comment.