Skip to content
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

Merged
merged 10 commits into from
Apr 3, 2024

Conversation

LLee233
Copy link
Contributor

@LLee233 LLee233 commented Mar 25, 2024

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.

Copy link

paddle-bot bot commented Mar 25, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Mar 25, 2024
@LLee233 LLee233 added the Intel label Mar 26, 2024
@LLee233 LLee233 force-pushed the reshape_transpose_matmul branch 4 times, most recently from bc8ce1d to 7e9344e Compare March 31, 2024 15:10
@LLee233
Copy link
Contributor Author

LLee233 commented Apr 1, 2024

Hi @vivienfanghuagood @yuanlehome , 这个PR的CI已经全部pass了,可以麻烦帮review一下吗?Thx~

Comment on lines 25 to 28
@unittest.skipIf(
not paddle.base.core.is_compiled_with_mkldnn(),
"Test case only for OneDNN pass.",
)
Copy link
Contributor

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可以一并梳理并删除下

Copy link
Contributor Author

@LLee233 LLee233 Apr 2, 2024

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
这里居然没有加上,麻烦你顺便加一下吧~

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,那我直接update在这个PR里啦~

Comment on lines 1 to 4
add_subdirectory(onednn)
if(WITH_MKLDNN)
add_subdirectory(onednn)
endif()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

第一行应该删去,重复了

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,完全没注意上面还有一行。。。

Copy link
Contributor

@yuanlehome yuanlehome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xinyu-intel xinyu-intel merged commit c8471a5 into PaddlePaddle:develop Apr 3, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers Intel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants