public static async Task <CNTKGraphModel> CreateCNTKGraphModel(StorageFile file) { LearningModelPreview learningModel = await LearningModelPreview.LoadModelFromStorageFileAsync(file); CNTKGraphModel model = new CNTKGraphModel(); model.learningModel = learningModel; return(model); }
private async void MainPage_Loaded(object sender, RoutedEventArgs e) { var file = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///mnist.onnx")); model = await CNTKGraphModel.CreateCNTKGraphModel(file); }