public static async Task <HeroModel> CreateHeroModel(StorageFile file)
        {
            LearningModelPreview learningModel = await LearningModelPreview.LoadModelFromStorageFileAsync(file);

            HeroModel model = new HeroModel();

            model.learningModel = learningModel;
            return(model);
        }
Esempio n. 2
0
        private async void LoadModel()
        {
            var modelFile = await StorageFile.GetFileFromApplicationUriAsync(new Uri(ModelPath));

            Model = await HeroModel.CreateHeroModel(modelFile);
        }