Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to populate onnx model with custom meta data map ? #1315

Closed
ac4922 opened this issue Jun 28, 2019 · 1 comment
Closed

How to populate onnx model with custom meta data map ? #1315

ac4922 opened this issue Jun 28, 2019 · 1 comment

Comments

@ac4922
Copy link

ac4922 commented Jun 28, 2019

I have an array which I intend to append in the onnx file itself.

In my opninion, onnxruntime provides an option to retrieve custom meta data map/

from onnxruntime import InferenceSession
sess = InferenceSession(example)
meta = sess.get_modelmeta()
print("custom_metadata_map={}".format(meta.custom_metadata_map))
source - https://microsoft.github.io/onnxruntime/auto_examples/plot_metadata.html#sphx-glr-auto-examples-plot-metadata-py

However, it is always populated empty. My goal is to append some custom_metadata when I convert a scikit learn model to onnx which is available when the onnx is read by onnxruntime.

Please suggest if that is possible and how.

@faxu faxu added the question label Jun 29, 2019
@pranavsharma
Copy link
Contributor

Please file this issue here https://github.com/onnx/sklearn-onnx/issues. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants