-api-id | -api-type |
---|---|
T:Windows.AI.MachineLearning.Preview.LearningModelPreview |
winrt class |
Deprecated. Represents a machine learning model.
Warning
This is a deprecated API. Please use the Windows.AI.MachineLearning namespace instead.
public async Task LoadModel()
{
var modelFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("model.onnx");
LearningModelPreview model = await LearningModelPreview.LoadModelFromStorageFileAsync(modelFile);
...
}