Skip to content

Conversation

zhengshengning
Copy link
Contributor

@zhengshengning zhengshengning commented Aug 8, 2025

PR Category

Operator Mechanism

PR Types

Improvements

Description

Added API compatibility with PyTorch by introducing alias parameter.
paddle.no_grad
paddle.prod
paddle.reshape
paddle.Tensor.bitwise_or_

API Name Param Alias
paddle.no_grad orig_func func
paddle.prod x,axis input,dim
paddle.reshape x input
paddle.Tensor.bitwise_or_ x,y input,other

Due to the short testing time for reshape performance, it is particularly sensitive to performance. Therefore, a "param_one_alias" decorator is added to the reshape function.

Other
add alias unittest.

pcard-67164

Copy link

paddle-bot bot commented Aug 8, 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 11, 2025

Codecov Report

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

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

zhangbo9674
zhangbo9674 previously approved these changes Aug 11, 2025
@zhengshengning
Copy link
Contributor Author

/re-run all-failed

@zhangbo9674 zhangbo9674 merged commit f904281 into PaddlePaddle:develop Aug 12, 2025
72 of 73 checks passed
maxiaolong001 pushed a commit to maxiaolong001/Paddle that referenced this pull request Aug 12, 2025
….reshape & paddle.Tensor.bitwise_or_ (PaddlePaddle#74480)

* add Alias : prod no_grad reshape bitwise_or_

* opt Decorator

* opt Decorator2

* opt reshape alias

* fix reshape alias

* fix reshape alias

* fix reshape alias2
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.

3 participants