-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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] Add ScheduleBlock graph #56122
[CINN] Add ScheduleBlock graph #56122
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
paddle/cinn/ir/tensor.cc
Outdated
@@ -603,6 +603,18 @@ std::string GenReduceInitTensorNameOf(const std::string &tensor_name) { | |||
return tensor_name + "__reduce_init"; | |||
} | |||
|
|||
bool IsReduceInitTensorName(const std::string &tensor_name) { | |||
return tensor_name.length() > 13 && |
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.
这个13会不会有点抽象了,要不定一个常量,名字叫length_of_xxx
一类的
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.
已修改,为"__reduce_init"后缀创建了常量
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 types
New features
PR changes
Others
Description
Pcard-74043
Added a graph data structure in units of ScheduleBlock and some necessary operations, such as finding upstream and downstream nodes, and performing operations in the DFS topological order.