-api-id | -api-type |
---|---|
M:Windows.AI.MachineLearning.LearningModel.LoadFromFilePath(System.String) |
winrt method |
Loads an ONNX model from a file on disk.
The path to the ONNX model file on disk.
An object representing the model.
This method is meant for desktop (non-UWP) applications. For UWP, see LoadFromStorageFileAsync.
To use this API on Windows Server, you must use Windows Server 2019 with Desktop Experience.
This API is thread-safe.