コード例 #1
0
        public static async Task <CNTKGraphModel> CreateCNTKGraphModel(StorageFile file)
        {
            LearningModelPreview learningModel = await LearningModelPreview.LoadModelFromStorageFileAsync(file);

            CNTKGraphModel model = new CNTKGraphModel();

            model.learningModel = learningModel;
            return(model);
        }
コード例 #2
0
        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);
        }