[Flexible Outputs] Allow multi-output matching#2873
Open
srikris-sridhar wants to merge 1 commit intomicrosoft:mainfrom
Open
[Flexible Outputs] Allow multi-output matching#2873srikris-sridhar wants to merge 1 commit intomicrosoft:mainfrom
srikris-sridhar wants to merge 1 commit intomicrosoft:mainfrom
Conversation
Author
|
@justinchuby Hopefully this is a good attempt. It's my first PR, so go easy on me :) |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2873 +/- ##
==========================================
+ Coverage 71.96% 71.98% +0.02%
==========================================
Files 239 239
Lines 29224 29262 +38
Branches 2878 2885 +7
==========================================
+ Hits 21031 21065 +34
- Misses 7216 7218 +2
- Partials 977 979 +2 ☔ View full report in Codecov by Sentry. |
Author
@microsoft-github-policy-service agree |
Adds support for pattern matching on multiple outputs
for optimizations involving ops like Split.
```
def pattern(self, op, x):
relu = op.Relu(x)
return op.Split(relu, _allow_flexible_outputs=True)
```
Fixes microsoft#2581
2d0cc42 to
38cf331
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds support for pattern matching on multiple outputs for optimizations involving ops like Split.
Fixes #2581