-
Notifications
You must be signed in to change notification settings - Fork 645
Optimize argument handling and improve ONNX graph building #1857
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1857 +/- ##
==========================================
- Coverage 86.28% 86.11% -0.18%
==========================================
Files 773 776 +3
Lines 89382 90402 +1020
==========================================
+ Hits 77125 77847 +722
- Misses 12257 12555 +298 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor comments that I have. But once they're resolved, we can merge them.
I'll copy our offline communication here to convey the benefits this PR will bring. I presume this is one in a series of refactorings to make the ONNX IR stand-alone.
A copy of our offline conversation about the benefits of these changes: can you please summarize this?
|
This PR reduces the number of copies of the arguments from 3 to 2, and removes the need to sync changes to arguments between 2 different data structures. It contains a few other minor changes like making the graph_builder actually produce an onnx graph. Part of the goal is just making onnx parsing easier to add to and debug. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks for your contribution!
Pull Request Template
Checklist
run-checks all
script has been executed.Related Issues/PRs
#1840
Changes
This was the alternative design I was talking about the other day. It's definitely a different set of compromises compared to #1795.
graph_io
, and move renaming to the end, which mostly worksProblems
Testing
testing with existing onnx test, and the minst classification web example. passes the test, both work as expected.
I figured out why the example was failing before. All but the first input are also initializers.