Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 940 Bytes

learningmodel_loadfromfilepath_1707142441.md

File metadata and controls

37 lines (24 loc) · 940 Bytes
-api-id -api-type
M:Windows.AI.MachineLearning.LearningModel.LoadFromFilePath(System.String,Windows.AI.MachineLearning.ILearningModelOperatorProvider)
winrt method

Windows.AI.MachineLearning.LearningModel.LoadFromFilePath

-description

Loads an ONNX model from a file on disk.

-parameters

-param filePath

The path to the ONNX model file on disk.

-param operatorProvider

-returns

An object representing the model.

-remarks

This method is meant for desktop (non-UWP) applications. For UWP, see LoadFromStorageFileAsync.

Windows Server

To use this API on Windows Server, you must use Windows Server 2019 with Desktop Experience.

Thread safety

This API is thread-safe.

-see-also

-examples