Skip to content

[API Compatibility No.218] support torch-style kwarg aliases for paddle.select_scatter#77922

Open
Aidenwu0209 wants to merge 1 commit intoPaddlePaddle:developfrom
Aidenwu0209:api-compatibility-218
Open

[API Compatibility No.218] support torch-style kwarg aliases for paddle.select_scatter#77922
Aidenwu0209 wants to merge 1 commit intoPaddlePaddle:developfrom
Aidenwu0209:api-compatibility-218

Conversation

@Aidenwu0209
Copy link
Contributor

@Aidenwu0209 Aidenwu0209 commented Feb 14, 2026

PR Category

User Experience

PR Types

Improvements

Description

  • Related issue: 【启航计划】PaddlePaddle API兼容性增强 #76301 (No.218)
  • Add torch-style kwarg aliases for paddle.select_scatter via ParamAliasDecorator:
    • input -> x
    • src -> values
    • dim -> axis
  • Keep original signature and behavior unchanged.
  • Update docstring alias notes for x / values / axis.
  • Add alias API tests in test/legacy_test/test_select_scatter_op.py:
    • alias call equivalence (x/values/axis vs input/src/dim)
    • conflict case (axis with dim) expects ValueError
  • Local check:
    • python -m py_compile python/paddle/tensor/manipulation.py test/legacy_test/test_select_scatter_op.py

是否引起精度变化

@paddle-bot
Copy link

paddle-bot bot commented Feb 14, 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.

@paddle-bot paddle-bot bot added the contributor External developers label Feb 14, 2026
@Aidenwu0209 Aidenwu0209 force-pushed the api-compatibility-218 branch from cf68cde to a27744b Compare February 14, 2026 12:41
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@01be8c4). Learn more about missing BASE report.

Additional details and impacted files
@@             Coverage Diff             @@
##             develop    #77922   +/-   ##
===========================================
  Coverage           ?   100.00%           
===========================================
  Files              ?         1           
  Lines              ?         1           
  Branches           ?         0           
===========================================
  Hits               ?         1           
  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.

@Aidenwu0209
Copy link
Contributor Author

/re-run all-failed

2 similar comments
@Aidenwu0209
Copy link
Contributor Author

/re-run all-failed

@Aidenwu0209
Copy link
Contributor Author

/re-run all-failed

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

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants