-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[CINN] Fix ReduceTree Fusion #67400
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
[CINN] Fix ReduceTree Fusion #67400
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
| 1, | ||
| ::common::errors::InvalidArgument( | ||
| "Downstream %s must have only one fusion_op.", instr->downstream_)); | ||
| auto upstream_op = std::get<ReduceOp>( |
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.
加一个单侧。
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.
下个 PR 完成
| std::string new_tmp_id() const { | ||
| if (cur_id_ == id_) { | ||
| cur_id_ = id_ + "_tmp_0"; | ||
| } else { | ||
| int ith = std::stoi(cur_id_.substr(cur_id_.size() - 1)); | ||
| cur_id_ = id_ + "_tmp_" + std::to_string(ith + 1); | ||
| } | ||
| return cur_id_; | ||
| } | ||
|
|
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.
这个不要作为成员函数吧,可以放到 utils 中作为一个工具函数。
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.
下个 PR 完成
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
PR Category
CINN
PR Types
Bug fixes
Description
Pcard-76996