Skip to content

[Accuracy diff No.6、7、58] Fix accuracy diff for argsort API - #219

Merged
wanghuancoder merged 2 commits into
PFCCLab:mainfrom
cszdrg:main
Jun 3, 2025
Merged

wanghuancoder merged 2 commits into
PFCCLab:mainfrom
cszdrg:main

Conversation

@cszdrg

@cszdrg cszdrg commented Jun 3, 2025 •

Copy link
Copy Markdown
Collaborator

argsort 中 如果stale=False,为不稳定排序 ,输出的index顺序是并非有序的,存在随机性,将所有的stale=False配置移入random中
同理 sort若为非稳定排序,在梯度回传会与torch存在精度差异 也移入random

@paddle-bot

paddle-bot Bot commented Jun 3, 2025

Copy link
Copy Markdown

Thanks for your contribution!

@cangtianhuang cangtianhuang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@wanghuancoder wanghuancoder left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants