-
Notifications
You must be signed in to change notification settings - Fork 639
[MLIR] fold slice and copy int64_max support #1970
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
a241ec4
to
160cdeb
Compare
Taken from @gpetters94 patch https://github.com/gpetters94/mlir-npcomp/tree/intmax |
This patch already fixes the int64_max issue. The new shape issues are from the masked_fill_ op: |
I tried to only use the
FIXED. Upgrade my torch and torch-vision version. |
Success test_slicecopy.py |
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.
There are multiple edge cases here. All should be e2e tested to avoid off-by-1 errors.
fc19ff4
to
9fb9051
Compare
Add a TODO for the general clamp way. #2005 (comment) |
Sure, it does require quite a few ops. Can we keep the same structure as the other patch? In particular, we should have a helper function This will make it easier in the future to add the full support for clamping, since now all that is needed is to improve |
Also, this PR should have e2e tests testing the new functionality. |
new slice copy e2e test for my case.
|
Fixed by a46b5c6 |
#1953
SUCCESS test_slicecopy.py
test_slicecopyt_masked_fill.py
t5_small_torchscript_test2.mlir