Skip to content

Commit f13f0e0

Browse files
author
Aditya Rastogi
committed
Update Resnet C# sample to use correct registration API
1 parent dd8e166 commit f13f0e0

File tree

1 file changed

+1
-1
lines changed
  • Samples/WindowsML/cs/ResnetBuildDemoCS/ResnetBuildDemoCS

1 file changed

+1
-1
lines changed

Samples/WindowsML/cs/ResnetBuildDemoCS/ResnetBuildDemoCS/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public static async Task<int> Main(string[] arguments)
149149

150150
// Use WinML to download and register Execution Providers
151151
var catalog = ExecutionProviderCatalog.GetDefault();
152-
var registeredProviders = await catalog.EnsureAndRegisterAllAsync();
152+
var registeredProviders = await catalog.EnsureAndRegisterCertifiedAsync();
153153

154154
// Prepare paths
155155
string executableFolder = Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!;

0 commit comments

Comments
 (0)