-
Notifications
You must be signed in to change notification settings - Fork 105
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
#6361: Update ttnn repeat to use correct shapes when formatting output #6526
Conversation
@tt-aho I tested with your fix for repeat, it worked for cases when tensor doesn't have any padding. Is it possible to make the ttnn.repeat op smarter to ignore the padding? I think ttnn.repeat_interleave supports that Failure unit test
Error
|
I mentioned that you needed to create your input tensor as RM so that it would not have padding |
Got it, Thanks! I just wanted to add that ttnn does have smart understanding of padding for few ops even in TILE layout. It will be good at user level to not worry about the padding. |
Yes, should be possible, I'll take a look. |
@arakhmati I'm not too familiar with everything that is expected/set up with ttnn, but for the tt_lib version of the op the only restriction is that the byte size of the last dim is aligned if we are trying to repeat on the last dim.
Is it correct for me to remove the dtype restriction if tt_lib version supports any dtype? Not sure how/if we can make ttnn only fallback for the specific alignment case. Other potential issue with removing the restrictions is that ttnn is doing the pad/reshape to tile afterwards so not sure if that's affected.