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

Tom/onnx2pyverify #165

Merged
merged 2 commits into from
Jan 7, 2021
Merged

Tom/onnx2pyverify #165

merged 2 commits into from
Jan 7, 2021

Conversation

TomWildenhain-Microsoft
Copy link
Contributor

@TomWildenhain-Microsoft TomWildenhain-Microsoft commented Dec 29, 2020

Fixed bugs in large model support, added verification code for debugging


model_trace = convert_model(model)
model_trace = convert_field(model)
code = "from onnx import helper, numpy_helper, TensorProto"
if TracingObject.get_cnt(make_external_tensor_traced):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Suggest to add one more comment in the code:
"""
Running <out_path+".py"> file to recreate the original onnx model.
Example usage:
python <out_path+".py"> out_model_path.onnx
"""

@TomWildenhain-Microsoft TomWildenhain-Microsoft merged commit af415ea into master Jan 7, 2021
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

Successfully merging this pull request may close these issues.

3 participants