Skip to content

Change default flag value for OpenVINO #252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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