Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

[API Compatibility No.228] Support 'input' argument alias for paddle.trace -part

Open LiaoYFBH opened this issue 3 weeks ago • 2 comments

PR Category

User Experience

PR Types

New features

Description

  1. API: Applied @ParamAliasDecorator({"x": ["input"]}) to paddle.trace in python/paddle/tensor/math.py to map input to x.
  2. Test: Added TestTraceAlias in test/legacy_test/test_trace_op.py to verify the correctness of the new argument alias.
  3. Doc: Updated the docstring of paddle.trace to explicitly document the input alias support.

LiaoYFBH avatar Dec 04 '25 17:12 LiaoYFBH

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :warning: Please upload report for BASE (develop@3430fe8). Learn more about missing BASE report.

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

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

codecov-commenter avatar Dec 04 '25 21:12 codecov-commenter

你的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[bot] avatar Dec 05 '25 03:12 paddle-bot[bot]