Example #1
0
        public async Task <classifierOutput> EvaluateAsync(classifierInput input)
        {
            binding.Bind("data", input.data);
            var result = await session.EvaluateAsync(binding, "0");

            var output = new classifierOutput();

            output.classLabel = result.Outputs["classLabel"] as TensorString;
            output.loss       = result.Outputs["loss"] as IList <IDictionary <string, float> >;
            return(output);
        }
Example #2
0
 // A method to evaluate the model
 private async Task evaluate()
 {
     output = await modelGen.EvaluateAsync(input);
 }