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

[Phi] Move mul op kernel into phi #40833

Merged

Conversation

chenwhql
Copy link
Contributor

@chenwhql chenwhql commented Mar 22, 2022

PR types

Function optimization

PR changes

OPs

Describe

[Phi] Move mul op kernel into phi

mul op统计调用频次超过800,因此尽管其是1.x算子,但出于兼容考虑,将Mul Op迁移至phi,原先的Mul Op实质上是带有flatten性质的matmul运算,因此kernel更名为matmul_with_flatten,并和matmul kernel放到一起管理

这个kernel暂时不需要yaml声明,2.x动态图API已不再使用

Copy link
Contributor

@MingMingShangTian MingMingShangTian left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

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

LGTM

@chenwhql chenwhql merged commit 1b49181 into PaddlePaddle:develop Mar 24, 2022
chenwhql added a commit to chenwhql/Paddle that referenced this pull request Jun 15, 2022
chenwhql added a commit to chenwhql/Paddle that referenced this pull request Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants