HankMody-6589 avatar image
0 Votes"
HankMody-6589 asked RoyLi-MSFT commented

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

I tried to view information about the parameters of the model using 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?

· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Will this behavior happen when you are using a different onnx model?

0 Votes 0 ·

It will still happen!

0 Votes 0 ·

I‘ll consult other engineers about this issue. There might be some time delay.

0 Votes 0 ·
Show more comments

Sorry for the delay. Based on the response I got, currently, Microsoft Q&A doesn't support questions about Microsoft Machine Learning. If you want to ask or answer technical questions about Windows ML, please use the windows-machine-learning tag on Stack Overflow.

0 Votes 0 ·

0 Answers