-
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
[PIR][oneDNN] Add reshape_transpose_matmul_fuse_pass #62998
[PIR][oneDNN] Add reshape_transpose_matmul_fuse_pass #62998
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
bc8ce1d
to
7e9344e
Compare
Hi @vivienfanghuagood @yuanlehome , 这个PR的CI已经全部pass了,可以麻烦帮review一下吗?Thx~ |
@unittest.skipIf( | ||
not paddle.base.core.is_compiled_with_mkldnn(), | ||
"Test case only for OneDNN pass.", | ||
) |
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.
onednn里的pass单测是不需要加这个skipif的,当WITH_MKLDNN为OFF时,相关Pass是不会加入单测列表的,其他Pass可以一并梳理并删除下
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.
但这个我之前有case没加,结果inference CI 过不了。。。应该是因为pass没注册,但这个case会跑且调用了相应的pass
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.
好的,那我直接update在这个PR里啦~
2329c51
to
b2b606e
Compare
add_subdirectory(onednn) | ||
if(WITH_MKLDNN) | ||
add_subdirectory(onednn) | ||
endif() |
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.
好的,完全没注意上面还有一行。。。
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
Others
PR Types
New features
Description
Based on new pass mechanism, here we add pass "reshape_transpose_matmul_fuse_pass" for PIR.
The new pass is same as "reshape_transpose_matmul_mkldnn_fuse_pass" in "/paddle/fluid/framework/ir/mkldnn/reshape_transpose_matmul_mkldnn_fuse_pass.cc"
Also, to extend the capability of matmul_elementwise_add_fuse_pass, we here add new pattern for it.