Skip to content

Conversation

@Enigmatisms
Copy link
Contributor

PR Category

Operator Mechanism

PR Types

New features

Description

  • 增加了 paddle.compat.sort,其用法与 PyTorch 一致。
  • 兼容升级了 PHI argsort 算子:使其在 CPU/GPU 端支持对 float16/bfloat16/uint8_t/int16_t Tensor 的 forward backward
  • 增加了对应的单元测试 test_compat_sort.py

Pcard-89620

@paddle-bot
Copy link

paddle-bot bot commented Aug 12, 2025

你的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.

@codecov-commenter
Copy link

codecov-commenter commented Aug 12, 2025

Codecov Report

❌ Patch coverage is 92.59259% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@e770b83). Learn more about missing BASE report.

Files with missing lines Patch % Lines
python/paddle/tensor/compat.py 91.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop   #74558   +/-   ##
==========================================
  Coverage           ?   92.59%           
==========================================
  Files              ?        3           
  Lines              ?       27           
  Branches           ?        0           
==========================================
  Hits               ?       25           
  Misses             ?        2           
  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.

@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

@Enigmatisms
Copy link
Contributor Author

/re-run all failed

@Enigmatisms Enigmatisms force-pushed the sort_api branch 2 times, most recently from 3021da1 to e7923b5 Compare August 14, 2025 10:30
@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

3 similar comments
@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

zhangbo9674
zhangbo9674 previously approved these changes Aug 15, 2025
@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

4 similar comments
@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

Copy link
Contributor

@sunzhongkai588 sunzhongkai588 left a comment

Choose a reason for hiding this comment

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

LGTM,中文记得补充

Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

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

LGTM

@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

@zhangbo9674 zhangbo9674 merged commit 39e0b4f into PaddlePaddle:develop Aug 18, 2025
152 of 164 checks passed
Luckycheng222 pushed a commit to Luckycheng222/Paddle that referenced this pull request Aug 25, 2025
…t (type expansion) (PaddlePaddle#74558)

* [API-Compat] Added paddle.compat.sort and tested

* [API-Compat] Updated EN docs

* [API-Compat] Fixed EN doc and updated decorator

* [API-Compat] Fixed EN Doc

* [API-Compat] Updated forbid-keyword decorator

* [API-Compat] Resolved merge conflicts.

* [API-Compat] Fixed Doc test

* [API-Compat] Fixed compat import

* [API-Compat] Resolved merge conflicts

* [API-Compat] Resolved failed pre-commit
@Enigmatisms Enigmatisms deleted the sort_api branch August 29, 2025 05:04
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.

5 participants