-
Notifications
You must be signed in to change notification settings - Fork 83
Add reproduction test case for incorrect slice rewrite and add potential fix #2478
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
Add reproduction test case for incorrect slice rewrite and add potential fix #2478
Conversation
@microsoft-github-policy-service agree |
Thanks for catching this! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2478 +/- ##
==========================================
+ Coverage 70.06% 70.08% +0.02%
==========================================
Files 212 212
Lines 25638 25646 +8
Branches 2572 2573 +1
==========================================
+ Hits 17964 17975 +11
+ Misses 6783 6781 -2
+ Partials 891 890 -1 ☔ View full report in Codecov by Sentry. |
Could you format the code with |
Head branch was pushed to by a user without write access
Ran |
That’s expected. Thanks |
This adds a reproduction of the rule introduced in f42c2bb leading to an incorrect rewrite of the graph.
The original rule does not consider the step parameter, which can influence the result of a
Slice
to be the identity even when input and output shape are equivalent.The potential fix seems to be to not apply the rule on
step != 1
, therefore the second commit adds this to the original rule implementation.