-
Notifications
You must be signed in to change notification settings - Fork 71
Support common subexpression elimination pass (CSE) #2304
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
f6563ad
draft tests
titaiwangms 2f55000
add more tests
titaiwangms d567ba1
Merge branch 'main' into titaiwang/cse_pass
titaiwangms d1082d1
Update onnxscript/ir/passes/common/common_subexpression_elimination.py
titaiwangms ea873e4
Merge branch 'main' into titaiwang/cse_pass
titaiwangms 017ef27
inplace
titaiwangms 2a370e4
add recursive function but one test is still faling
titaiwangms d490072
Merge branch 'main' into titaiwang/cse_pass
titaiwangms 706b86a
revert subgraph cse support
titaiwangms dcbc08d
add another test for subgraph
titaiwangms 55d32c7
add the pass to optimization
titaiwangms c5cab5b
make repeated contained attributes hashable
titaiwangms be2c008
Merge branch 'main' into titaiwang/cse_pass
titaiwangms da05efb
delete previous_node and only delete the node
titaiwangms ce2bc54
Merge branch 'main' into titaiwang/cse_pass
titaiwangms 1d4fd53
create and use a stateless function
titaiwangms 5cfd94e
keep the names of graph output
titaiwangms 44f6042
address reviews
titaiwangms ab212d6
resolve conflict
titaiwangms 9c2d134
revert
titaiwangms 6a43bfb
fix lint
titaiwangms 3b1b19f
separate import common_subexpression_elimination
titaiwangms 9fd8948
remove cse from optimizer
titaiwangms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.