Skip to content

[Cherry-pick][Operator] Align CPU randperm_kernel with PyTorch for bit-exact output #78614#78627

Merged
sneaxiy merged 3 commits intoPaddlePaddle:release/3.3from
zhengshengning:cp_acc_randperm_cpu
Apr 13, 2026
Merged

[Cherry-pick][Operator] Align CPU randperm_kernel with PyTorch for bit-exact output #78614#78627
sneaxiy merged 3 commits intoPaddlePaddle:release/3.3from
zhengshengning:cp_acc_randperm_cpu

Conversation

@zhengshengning
Copy link
Copy Markdown
Contributor

PR Category

Operator Mechanism

PR Types

Improvements

Description

devPR:#78614

是否引起精度变化

zhengshengning and others added 3 commits April 10, 2026 11:09
Replace std::mt19937_64 + std::shuffle with a custom MT19937 engine
that matches PyTorch's implementation, ensuring identical randperm
results under the same seed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@paddle-bot
Copy link
Copy Markdown

paddle-bot bot commented Apr 10, 2026

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@zhengshengning zhengshengning changed the title Cp acc randperm cpu [Cherry-pick][Operator] Align CPU randperm_kernel with PyTorch for bit-exact output #78614 Apr 10, 2026
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release/3.3@ef0820a). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff               @@
##             release/3.3    #78627   +/-   ##
===============================================
  Coverage               ?   100.00%           
===============================================
  Files                  ?         1           
  Lines                  ?        57           
  Branches               ?         0           
===============================================
  Hits                   ?        57           
  Misses                 ?         0           
  Partials               ?         0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@wanghuancoder wanghuancoder left a comment

Choose a reason for hiding this comment

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

LGTM

@sneaxiy sneaxiy merged commit 2115d0a into PaddlePaddle:release/3.3 Apr 13, 2026
85 of 96 checks passed
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.

4 participants