private async Task LoadModelAsync()
        {
            // Load a machine learning model
            StorageFile modelFile = await StorageFile.GetFileFromApplicationUriAsync(new Uri($"ms-appx:///Assets/sthv2_tpn.onnx"));

            ModelGen = await sthv2_tpnModel.CreateFromStreamAsync(modelFile as IRandomAccessStreamReference);
        }
        public static async Task <sthv2_tpnModel> CreateFromStreamAsync(IRandomAccessStreamReference stream)
        {
            sthv2_tpnModel learningModel = new sthv2_tpnModel();

            learningModel.model = await LearningModel.LoadFromStreamAsync(stream);

            learningModel.session = new LearningModelSession(learningModel.model);
            learningModel.binding = new LearningModelBinding(learningModel.session);
            return(learningModel);
        }