Skip to content

Conversation

@DongBaiYue
Copy link
Contributor

@DongBaiYue DongBaiYue commented Aug 11, 2025

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 param1 alias1 param2 alias2
torch.concat x tensors axis dim
torch.empty_like x input
torch.full shape size
torch.outer x input y vec2
torch.Tensor.norm axis dim
torch.where x input y other
torch.zeros_like x input

Usage Example:

# Traditional Paddle call ouput = paddle.concat(x=x, axis=axis) # New PyTorch-compatible call ouput = paddle.concat(tensors=x, dim=axis) 

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-commenter commented Aug 11, 2025

Codecov Report

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

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

@DongBaiYue
Copy link
Contributor Author

/re-run all-failed

@DongBaiYue
Copy link
Contributor Author

/re-run all-failed

@zhangbo9674 zhangbo9674 merged commit 537031c into PaddlePaddle:develop Aug 14, 2025
72 of 75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

3 participants