public async Task <RN1015k500Output> EvaluateAsync(RN1015k500Input input) { binding.Bind("data", input.data); var result = await session.EvaluateAsync(binding, "0"); var output = new RN1015k500Output(); output.classLabel = result.Outputs["classLabel"] as TensorString; output.softmax_output = result.Outputs["softmax_output"] as IList <Dictionary <string, float> >; return(output); }
public async Task <IMachineLearningOutput> EvaluateAsync(IMachineLearningInput input) { var modelInput = input as RN1015k500Input; Binding.Bind("data", modelInput.data); var result = await Session.EvaluateAsync(Binding, "0"); var output = new RN1015k500Output(); output.classLabel = result.Outputs["classLabel"] as TensorString; output.softmax_output = result.Outputs["softmax_output"] as IList <Dictionary <string, float> >; return(output); }