public async Task <Inceptionv3_convertedOutput> EvaluateAsync(Inceptionv3_convertedInput input) { binding.Bind("input_1_0", input.input_1_0); var result = await session.EvaluateAsync(binding, "0"); var output = new Inceptionv3_convertedOutput(); output.dense_2_Softmax_01 = result.Outputs["dense_2_Softmax_01"] as TensorFloat; return(output); }
private async void Button_Click(object sender, RoutedEventArgs e) { await ModelUtils.Utils.LoadModel(); Inceptionv3_convertedOutput output = await ModelUtils.Utils.Evaluate(file); var results = output.dense_2_Softmax_01.GetAsVectorView(); foreach (float result in results) { //btLoad.Content += " " + result; } }