[CherryPick] fix compare ops when broadcast #33086
Merged
XiaoguangHu01 merged 2 commits intoPaddlePaddle:release/2.1from Jun 4, 2021
Merged
[CherryPick] fix compare ops when broadcast #33086XiaoguangHu01 merged 2 commits intoPaddlePaddle:release/2.1from
XiaoguangHu01 merged 2 commits intoPaddlePaddle:release/2.1from
Conversation
|
✅ This PR's description meets the template requirements! |
|
Thanks for your contribution! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR types
Bug fixes
PR changes
OPs
Describe
Cp fix compare ops broadcast,cherry-pick from the PR #32941
现象:上面是代码复现的BUG代码,当时比较类API进行broadcast过程中,如果第一个输入的shape小于第二个shape的维度,
在一定条件下会触发一个bug,例如 进行
<比较的时候,出现了相同的值则会比较错误。原因:注册Kernel的时候函数注册错误
解决:注册正确的比较类函数