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

[XPU] speed up for special case of strided_slice op. #55166

Merged

Conversation

houj04
Copy link
Contributor

@houj04 houj04 commented Jul 5, 2023

PR types

Performance optimization

PR changes

OPs

Description

在跑EB模型的时候,发现strided_slicestrided_slice_grad这两个算子耗时较大。EB模型对这两个算子的调用规模是固定的,并且本质上是“隔一个元素取一个元素”。

因此针对这一类的特殊情况单独做了处理,不使用平常的算法,而是通过补0和转置来实现。

@paddle-bot
Copy link

paddle-bot bot commented Jul 5, 2023

你的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 contributor External developers status: proposed labels Jul 5, 2023
@QingshuChen QingshuChen merged commit 2ff949d into PaddlePaddle:develop Jul 6, 2023
@paddle-bot
Copy link

paddle-bot bot commented Jul 6, 2023

你的PR已合入Paddle库,请关注后续测试结果。
Your PR has been merged into the repository. An official integration test will be conducted later. Stay tuned.

cqulilujia pushed a commit to cqulilujia/Paddle that referenced this pull request Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants