Skip to content

Conversation

@wawltor
Copy link
Contributor

@wawltor wawltor commented Mar 29, 2022

PR types

Bug fixes

PR changes

OPs

Describe

Fix sort cpu when with input of NaN

  • 1.0, np.nan, 3.0, 2.0 -> 降序排序后 nan 3 2 1 -> 排序的indices (1, 2, 3, 0)
  • 1.0, np.nan, 3.0, 2.0 -> 升序排序后 1 2 3 nan -> 排序的indices (0, 3, 2, 1)

GPU:在10.2 11.2两个cuda版本测试了一下和torch结果是一样的

Copy link
Contributor

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

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

LGTM

@wawltor wawltor changed the title Fix sort cpu when with input of NaN Fix argsort cpu kernel when with input of NaN Mar 30, 2022
@wawltor wawltor merged commit 17af293 into PaddlePaddle:develop Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants