-
Notifications
You must be signed in to change notification settings - Fork 53
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
Resize indexing misc bug fixes #3632
base: main
Are you sure you want to change the base?
Conversation
!test |
for (auto inp : ir_utils::filterByType<TensorView>(expr->inputs())) { | ||
for (auto expr : inp->domain()->allExprs()) { | ||
std::unordered_map<TensorView*, std::vector<Resize*>> tv_resize_map; | ||
for (auto inp : expr->inputs()) { |
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 was a trivial bug that I assumed expr->inputs()
are still TensorView
and not TensorIndex
, which is not true for predicating vectorized ops.
@@ -44,6 +44,27 @@ IndexingTraversal::IndexingTraversal( | |||
} | |||
resize_paths_.insert(resize); | |||
} | |||
|
|||
// A unique expr path should be always allowed |
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.
A war for a couple of issues I encountered while playing with RoPE patterns.
Just minor bug fixes. Please see the inline comments.