How to get information about parameters of the onnx model in Windows.AI.MachineLearning?

Hank Mody 21 Reputation points
2021-08-30T16:54:04.25+00:00

I tried to view information about the parameters of the model using windows.ai.machinelearning like this:

               var stream= await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Assets/eye.onnx"));
               model = await LearningModel.LoadFromStreamAsync(stream);
               var ct=model.Metadata.Count();

The returned value of "ct" is 0, but the model can run normally!I changed my code like this:

           int ct = 0;
           foreach (var i in model.Metadata)
           { ct ++; }

The "ct" is still 0,why?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,092 questions
{count} votes