-
Notifications
You must be signed in to change notification settings - Fork 56
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
Track nodes added in pattern builder #1770
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1770 +/- ##
==========================================
- Coverage 75.06% 75.04% -0.02%
==========================================
Files 245 245
Lines 26436 26472 +36
Branches 4822 4829 +7
==========================================
+ Hits 19844 19867 +23
- Misses 5660 5674 +14
+ Partials 932 931 -1 ☔ View full report in Codecov by Sentry. |
Test Results 24 files ± 0 24 suites ±0 3h 10m 31s ⏱️ - 12m 44s For more details on these failures, see this check. Results for commit 4a2f311. ± Comparison against base commit 23e1fcb. This pull request removes 3734 and adds 2322 tests. Note that renamed tests count towards both.
This pull request removes 224 skipped tests and adds 362 skipped tests. Note that renamed tests count towards both.
This pull request skips 43 and un-skips 1 tests.
♻️ This comment has been updated with latest results. |
…rosoft/onnxscript into rama/pattern-builder-context
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.
🎉
Co-authored-by: Justin Chu <[email protected]>
This fixes a couple of issues with the graph pattern builder by explicitly tracking the nodes added/created. This ensures that node ordering is exactly the same as what the user specifies (which helps with debugging and the verbose logs). In addition, we use a context manager to track the nodes added via the use of overloaded operators like + and *.
This also impacts how the "commuted" GraphPatterns are constructed. This has also been cleaned up (allowing commute to handle multiple output nodes as well).
Remove the unused "onnxop" imports left over after some refactoring a while back.