-
Notifications
You must be signed in to change notification settings - Fork 114
[Add Pass] CommonSubexpressionElimination #1116
Conversation
zrr1999
commented
Dec 14, 2022
•
edited by luotao1
Loading
edited by luotao1
- 【2022】CINN开发任务跟踪 #1115
@SunNy820828449 @thisjiang 麻烦帮忙review一下 |
好的 你这个是基于frontend的pass,你可以参看一下文档,尝试开发基于hlir的pass,我们是希望把pass尽量放到hlir上实现。 |
好的,我去看看 |
我已经改成基于 hlir 的,麻烦再帮忙review一下 |
适当增加一些注释,方便其他人阅读。 |
好的,已经在关键的分支处加入了一些注释 |
因为transpose的参数命名存在一些问题,axis应该是一个整数,向量格式应该用axes或者perm,在最新版的Paddle中是统一使用的perm,所以我把CINN 里transpose的axis也全部修改为了perm 好像不止transpose存在这个问题 |
现在special_attrs部分改成了暂时不对axis和dim进行处理 std::unordered_map<std::string, int> special_attrs = {
// {"axis", 1}, // due to the issue in some ops
// {"dim", 1}, // due to the issue in some ops
{"axes", 2},
{"perm", 2}
}; |
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
cinn-ci 流水线失败
|
我重启了一下,现在通过了,好像是因为我在前一个ci结束前提交了新的代码 |
@zrr1999 后续PR描述部分还是尽量写清楚,不是一定要求写很多,能简明表达PR实现的功能就行,这个只贴了一个整体任务的页面,不仔细看都不知道具体做的哪个任务。 |
好的,买白了 |