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

[Custom Device] 让silu_fuse_pass变为Custom Device的可用Pass #60596

Closed
engineer1109 opened this issue Jan 5, 2024 · 2 comments
Closed
Assignees
Labels
PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc status/close 已关闭 type/feature-request 新需求申请

Comments

@engineer1109
Copy link
Contributor

需求描述 Feature Description

任务目标:
让silu_fuse_pass变为Custom Device的可用Pass
paddle/fluid/framework/ir/silu_fuse_pass.cc
代码中存在

bool cutlass_enable = Get<bool>("use_cutlass");

这样的判定条件导致silu_fuse_pass变为cutlass(CUDA)专用Pass
然而, custom device没有cutlass的说法,所以即使在Paddle Inference中append这个pass,也不会有任何效果。

解决方案

#60595
这个PR使得silu_fuse_pass变为Custom Device可用的Pass
可以融合为swish算子

替代实现 Alternatives

No response

@paddle-bot paddle-bot bot added the PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc label Jan 5, 2024
@qili93
Copy link
Contributor

qili93 commented Jan 6, 2024

Thanks for your contribution :)

@qili93
Copy link
Contributor

qili93 commented Jan 10, 2024

Close as PR merged.

@qili93 qili93 closed this as completed Jan 10, 2024
@paddle-bot paddle-bot bot added status/close 已关闭 and removed status/new-issue 新建 labels Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc status/close 已关闭 type/feature-request 新需求申请
Projects
None yet
Development

No branches or pull requests

2 participants