-
Notifications
You must be signed in to change notification settings - Fork 55
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
Make sure IterDomain::resize generates non-symbolic IDs #4007
Conversation
!test |
Review updated until commit 809b583 Description
Changes walkthrough 📝
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
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
csrc/ir/nodes.cpp
Outdated
NVF_ERROR(nDims() > 0, "Tried to do resize on a 0-dim domain"); | ||
axis = wrapDim(axis); | ||
|
||
IterDomain* id = this->axis(axis); | ||
|
||
auto resized_id = IterDomain::resize(id, left_expansion, right_expansion); | ||
auto resized_id = | ||
IterDomain::resize(id, left_expansion, right_expansion, false, iter_type); |
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.
Nit:
IterDomain::resize(id, left_expansion, right_expansion, false, iter_type); | |
IterDomain::resize(id, left_expansion, right_expansion, /*mark_as_rfactor=*/false, iter_type); |
!build |
!build |
Just realized in some cases replaying resize resulted in generating symbolic IDs, even when it's guaranteed to be non-symbolic. Didn't see any particular error, likely just because it gets masked somehow, but we should not generate symbolic IDs unnecessarily.