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

support op hardtanh & fix op unfold, empty, max_pool2d_with_index, max_pool3d_with_index #1518

Merged
merged 2 commits into from
Feb 27, 2025

Conversation

zhanghonggeng
Copy link
Contributor

@zhanghonggeng zhanghonggeng commented Feb 26, 2025

支持 hardtanh 并修复 unfold, empty, max_pool2d_with_index, max_pool3d_with_index
1.新增 HardtanhMapper。
2. unfold 中增加不对称 paddling 的支持。
3. empty 算子中元素值是未初始化的,因此单测使用 zeros_like 统一输出结果。
4. 修复 Pool2dMapper 中的 pd_op.max_pool2d_with_index 情况和 Pool3dMapper 中的 pd_op.max_pool3d_with_index 情况,在pir中这两个算子的kernel_size当做attr传入。

Copy link

paddle-bot bot commented Feb 26, 2025

Thanks for your contribution!

@zhanghonggeng zhanghonggeng force-pushed the support_op branch 2 times, most recently from 443e347 to 36f03da Compare February 26, 2025 07:13
@zhanghonggeng zhanghonggeng changed the title support op hardtanh & fix unfold empty support op hardtanh & fix op unfold, empty, max_pool2d_with_index, max_pool3d_with_index Feb 26, 2025
Copy link
Collaborator

@0x3878f 0x3878f left a comment

Choose a reason for hiding this comment

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

LGTM

@risemeup1 risemeup1 merged commit 7b0c467 into PaddlePaddle:develop Feb 27, 2025
4 checks passed
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.

3 participants