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

[HuaweiAscendNPU] Convert AdaptivePool2d into Pool2d when CANN > 6.0.0 #10143

Merged

Conversation

shentanyue
Copy link
Collaborator

@shentanyue shentanyue commented Mar 28, 2023

PR devices

NNadapter + HuaweiAscendNPU

PR types

Bug fixes

PR changes

OP

Description

当CANN大于6.0后,CANN内部有对AdaptivePool2d相关算子的Pass,而该Pass内部有bug,会导致对lite_seg、fastrcnn等一些网络产生问题,因此这里将AdaptivePool2d转换为普通Pool2d去计算,后续等华为修复后,再考虑放开。

@paddle-bot
Copy link

paddle-bot bot commented Mar 28, 2023

Thanks for your contribution!

@PaddlePaddle PaddlePaddle locked as off-topic and limited conversation to collaborators Mar 28, 2023
@PaddlePaddle PaddlePaddle unlocked this conversation Mar 28, 2023
Copy link
Collaborator

@hong19860320 hong19860320 left a comment

Choose a reason for hiding this comment

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

LGTM

@shentanyue shentanyue merged commit 62ea259 into PaddlePaddle:develop Mar 29, 2023
@shentanyue shentanyue deleted the fix_ascend_cann_6_adaptive_pool branch March 29, 2023 03:04
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.

2 participants