-
Notifications
You must be signed in to change notification settings - Fork 66
Fix TensorDomain::setContiguity
#5125
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
base: main
Are you sure you want to change the base?
Conversation
Description
Changes walkthrough 📝
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
"Invalid size of contiguity vector"); | ||
for (auto i : arange(contig.size())) { | ||
NVF_CHECK( | ||
maybeAllocation().at(i)->isBroadcast() != contig.at(i).has_value(), |
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.
This should be:
(maybeAllocation().at(i)->isBroadcast() || maybeAllocation().at(i)->isReduction()) != contig.at(i).has_value()
!test |
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.
LGTM
The current
TensorDomain::setContiguity
does not correctly handle reduction ID.