Skip to content

Commit 275986b

Browse files
sheller-msSteven Heller
andauthored
fix issue with openvino in winml sample (#502)
Co-authored-by: Steven Heller <[email protected]>
1 parent 9cd428b commit 275986b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Samples/WindowsML/cpp/CppConsoleDesktop/CppConsoleDesktop/CppConsoleDesktop.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,7 @@ void ConfigureExecutionProviders(Ort::SessionOptions& session_options, Ort::Env&
202202
}
203203
else if (ep_name == "OpenVINOExecutionProvider")
204204
{
205-
// Configure threading for OpenVINO EP, pick the first device found.
206-
ep_options.Add("num_of_threads", "4");
205+
// Configure OpenVINO EP - pick the first device found.
207206
session_options.AppendExecutionProvider_V2(env, {devices.front()}, ep_options);
208207
std::cout << "Successfully added " << ep_name << " EP (first device only)" << std::endl;
209208
}

0 commit comments

Comments
 (0)