Skip to content

Conversation

@DongBaiYue
Copy link
Contributor

PR Category

Operator Mechanism

PR Types

Improvements

Description

This PR introduces PyTorch API compatibility aliases and resolves type checking issues:

  1. Added PyTorch-compatible parameter aliases:
API param alias
torch.pow x input
torch.pow y exponent
torch.Tensor.pow y exponent

Usage Example:

# Traditional Paddle call ouput = paddle.pow(x=tensor_x, y=tensor_y) # New PyTorch-compatible call ouput = paddle.pow(input=tensor_x, exponent=tensor_y) 

pcard-67164

@paddle-bot
Copy link

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

@paddle-bot paddle-bot bot added the contributor External developers label Aug 11, 2025
@codecov-commenter
Copy link

Codecov Report

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

Additional details and impacted files
@@ Coverage Diff @@ ## develop #74523 +/- ## =========================================== Coverage ? 100.00% =========================================== Files ? 1 Lines ? 2 Branches ? 0 =========================================== Hits ? 2 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.
@DongBaiYue
Copy link
Contributor Author

/re-run all-failed

2 similar comments
@DongBaiYue
Copy link
Contributor Author

/re-run all-failed

@DongBaiYue
Copy link
Contributor Author

/re-run all-failed

@zhangbo9674 zhangbo9674 merged commit 5fe5131 into PaddlePaddle:develop Aug 12, 2025
93 of 96 checks passed
@DongBaiYue DongBaiYue deleted the pow branch August 12, 2025 03:16
maxiaolong001 pushed a commit to maxiaolong001/Paddle that referenced this pull request Aug 12, 2025
* [API compatibility] torch.pow and torch.Tensor.pow * fix pow test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

3 participants