Windows.ai.machinelearning !exclusive! · Premium Quality
try
var file = await StorageFile.GetFileFromPathAsync(modelPath); model = await LearningModel.LoadFromStorageFileAsync(file); windows.ai.machinelearning
Windows ML is for inference (using a trained model), not for training models. try var file = await StorageFile
var modelA = await LearningModel.LoadFromFilePathAsync("modelA.onnx"); var modelB = await LearningModel.LoadFromFilePathAsync("modelB.onnx"); // ... load into separate sessions model = await LearningModel.LoadFromStorageFileAsync(file)
var session = new LearningModelSession(model, device);