Skip to content

Commit 5cf8f89

Browse files
committed
Merge branch 'release/experimental' into 'feature/1.8-ml'
2 parents ebdd7e3 + 275986b commit 5cf8f89

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
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
}

UpdateVersions.ps1

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,23 @@ Param(
33
[string]$NuGetPackagesFolder = ""
44
)
55

6-
# If the nuget packages folder is specified containing the latest versions,
7-
# go through them to get the versions of the component packages.
6+
# First, add the metapackage
87
$nugetPackageToVersionTable = @{"Microsoft.WindowsAppSDK" = $WinAppSDKVersion}
8+
9+
# Next, if the nuget packages folder is specified containing the latest versions,
10+
# go through them to get the versions of all dependency packages.
911
if (!($NuGetPackagesFolder -eq ""))
1012
{
1113
Get-ChildItem $NuGetPackagesFolder |
12-
Where-Object { $_.Name -like "Microsoft.WindowsAppSDK*" } |
14+
Where-Object { $_.Name -like "Microsoft.WindowsAppSDK.*" -or
15+
$_.Name -like "Microsoft.Windows.SDK.BuildTools.*" -or
16+
$_.Name -like "Microsoft.Web.WebView2.*" } |
1317
Where-Object { $_.Name -notlike "*.nupkg" } |
1418
ForEach-Object {
15-
if ($_.Name -match "^(Microsoft\.WindowsAppSDK\.[a-zA-Z]+)\.([0-9].*)$")
19+
if ($_.Name -match "^(Microsoft\.WindowsAppSDK\.[a-zA-Z]+)\.([0-9].*)$" -or
20+
$_.Name -match "^(Microsoft\.Windows\.SDK\.BuildTools\.MSIX)\.([0-9].*)$" -or
21+
$_.Name -match "^(Microsoft\.Windows\.SDK\.BuildTools)\.([0-9].*)$" -or
22+
$_.Name -match "^(Microsoft\.Web\.WebView2)\.([0-9].*)$")
1623
{
1724
$nugetPackageToVersionTable[$Matches[1]] = $Matches[2]
1825
Write-Host "Found $($Matches[1]) - $($Matches[2])"

0 commit comments

Comments
 (0)