-
Notifications
You must be signed in to change notification settings - Fork 617
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
[i1] Do not emit arith.trunci
cast from i1 to i1
#19176
base: main
Are you sure you want to change the base?
Conversation
@rohan-tan-bhowmik I am trying to fix an issue while making i1 attention works. However I have a problem: I don't know where to find an minimized test case for it as after decomposition my simple test cases are turned into big ones. Original commit does not show a lot of helpful info as well. I am wondering if you can give me a pointer to where I can get a test case for it? |
Hi @lialan! I had created a repository for specifically testing different variants of masked and causal attention: https://github.com/rohan-tan-bhowmik/iree-masked-attention-test. Please check it out and let me know if you have any questions about it. If this doesn't seem to help, let me know as well :) |
@rohan-tan-bhowmik Thanks! I am actually already using your repo to test I am doing manual changes in my private repo to bypass it, but it would be great to amend that in your repo! |
@rohan-tan-bhowmik still, the generated test file is too big a unit test for such a small change. I wonder if you can help me find a unit test for it? |
@rohan-tan-bhowmik Also perhaps I can still use a unit test here? But I think this change is small, I am okay submitting this PR without a test case. |
I can compile the out-of-tree repo emitted test with some changes along with this PR and another PR upstream. But it is missing correctness checking mechanism, and also the mask. Need this test to verify the generated result is sound, looking into it. |
Signed-off-by: Alan Li <[email protected]>
cff0921
to
7ee1094
Compare
arith.trunci
does not allow cast to same type