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

Fix reduce bug 2.2 #38478

Merged
merged 1 commit into from
Dec 29, 2021
Merged

Conversation

shangzhizhou
Copy link
Member

PR types

Bug fixes

PR changes

Others

Describe

fix bug:
paddle.max / paddle.min api,在CPU设备上,当参数axis.size() == input.dims.size(),且存在axis[i] < 0时,结果出错。出错原因为判断reduce_all的逻辑不完善,没有考虑过negative的axis。

TIPS:对应预develop的修改PR #38476。由于develop上reduce_max的kernel迁移到了pten的实现,所以代码修改位置并不一致,无法直接cherry-pick。

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@shangzhizhou shangzhizhou changed the base branch from develop to release/2.2 December 27, 2021 08:01
@PaddlePaddle PaddlePaddle locked as off-topic and limited conversation to collaborators Dec 27, 2021
@PaddlePaddle PaddlePaddle unlocked this conversation Dec 27, 2021
Copy link
Contributor

@Superjomn Superjomn left a comment

Choose a reason for hiding this comment

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

LGTM

@Superjomn Superjomn merged commit 0d9b12f into PaddlePaddle:release/2.2 Dec 29, 2021
@shangzhizhou shangzhizhou deleted the fix_reduce_bug_2.2 branch December 31, 2021 09:37
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