-
Notifications
You must be signed in to change notification settings - Fork 16
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
Output shape verification for reduce ops #2374
Conversation
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.
Great catch! Thanks for fixing this!
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.
Nice catch!
09c6aba
to
f118a37
Compare
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.
looks good, would be great to make some of the error message strings contain the offending inputs as commented
### Ticket Closes #2369 ### Problem description Some erroneous shapes would pass verification and only fail in the runtime due to wrong interpretation of `dim_arg` when its value is `nullopt`. There is an example in the linked issue. ### What's changed - Added verification when `dim_arg` is nullopt in TTNN - Added a shape verification in TTIR - Added negative tests ### Checklist - [x] New/Existing tests provide coverage for changes
Ticket
Closes #2369
Problem description
Some erroneous shapes would pass verification and only fail in the runtime due to wrong interpretation of
dim_arg
when its value isnullopt
. There is an example in the linked issue.What's changed
dim_arg
is nullopt in TTNNChecklist