mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Update WinRT_API.md to reflect 1.3 release (#4074)
fix broken link, add new release to the release table, and point to the 1.3 nuget package
This commit is contained in:
parent
c94d9685b6
commit
279f9aa865
1 changed files with 5 additions and 4 deletions
|
|
@ -8,17 +8,17 @@ The WinML API is a WinRT API that shipped inside the Windows OS starting with bu
|
|||
|
||||
Many customers have asked for a way to use this offering as an application redistributable package.
|
||||
|
||||
With our new [layered architecture](HighLevelDesign.md#the-onnx-runtime-and-windows-os-integration) you can now do this, with some limitations. The WinML APIs have been lifted and mirrored into the Microsoft.AI.MachineLearning namespace in the redistributable.
|
||||
With our new [layered architecture](InferenceHighLevelDesign.md#the-onnx-runtime-and-windows-os-integration) you can now do this, with some limitations. The WinML APIs have been lifted and mirrored into the Microsoft.AI.MachineLearning namespace in the redistributable.
|
||||
|
||||
## NuGet Package
|
||||
|
||||
The Microsoft.ML.OnnxRuntime [Nuget package](https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime/) includes the precompiled binaries for using the ONNX runtime with the WinRT API. Support is compiled directly into *onnxruntime.dll*
|
||||
The Microsoft.AI.MachineLearning [Nuget package](https://www.nuget.org/packages/Microsoft.AI.MachineLearning/) includes the precompiled binaries for using the ONNX runtime with the WinRT API. Support is compiled directly into *onnxruntime.dll*
|
||||
|
||||
Note: As of the 1.2 release, you can use all of the CPU functionality from these binaries. In order to get GPU functionality using DirectML, you will need to build the binary yourself using [these instructions](https://github.com/microsoft/onnxruntime/blob/master/BUILD.md#DirectML).
|
||||
Note: As of the 1.3 release, you can use all of the CPU and GPU functionality from these binaries.
|
||||
|
||||
## Sample Code
|
||||
|
||||
Any code already written for the Windows.AI.MachineLearning API can be easily modified to run against the Microsoft.ML.OnnxRuntime package. All types originally referenced by inbox customers via the Windows namespace will need to be updated to now use the Microsoft namespace. Check out these [existing samples](https://github.com/microsoft/windows-Machine-Learning) in github.
|
||||
Any code already written for the Windows.AI.MachineLearning API can be easily modified to run against the Microsoft.ML.OnnxRuntime package. All types originally referenced by inbox customers via the Windows namespace will need to be updated to now use the Microsoft namespace. Check out these [existing samples](https://github.com/microsoft/Windows-Machine-Learning/tree/master/Samples/SqueezeNetObjectDetection/Desktop/cpp) in github.
|
||||
|
||||
## Deciding on whether to use WinML in the Windows SDK or the Redist
|
||||
To detect if a particular OS version of Windows has the WinML APIs, use the [IsApiContractPresent](https://docs.microsoft.com/en-us/uwp/api/windows.foundation.metadata.apiinformation.isapicontractpresent) method. This can be called from either UWP or native apps.
|
||||
|
|
@ -31,5 +31,6 @@ If the OS does not have the runtime you need you can switch to use the redist bi
|
|||
|Windows OS 1903| 2|
|
||||
|Windows OS 1909| 2|
|
||||
|ORT release 1.2| 3|
|
||||
|ORT release 1.3| 3|
|
||||
|
||||
See [here](https://docs.microsoft.com/en-us/windows/ai/windows-ml/onnx-versions) for more about opsets and ONNX version details in Windows OS distributions.
|
||||
|
|
|
|||
Loading…
Reference in a new issue