Skip to content

Conversation

@HydrogenSulfate
Copy link
Contributor

@HydrogenSulfate HydrogenSulfate commented Aug 8, 2025

PR Category

User Experience

PR Types

New features

Description

Pcard-75624

为以下 9 个 API 补充部分参数,对齐 pytorch,添加对应动静态图单测

paddle.zeros
paddle.zeros_like
paddle.ones
paddle.ones_like
paddle.eye
paddle.empty
paddle.empty_like
paddle.full
paddle.full_like

@paddle-bot
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 Report

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

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

@HydrogenSulfate HydrogenSulfate changed the title Creation enh2 [API] Enhance several tensor creation methods Aug 8, 2025
SigureMo
SigureMo previously approved these changes Aug 8, 2025
@HydrogenSulfate HydrogenSulfate changed the title [API] Enhance several tensor creation methods [API Compatibility] Enhance several tensor creation methods Aug 8, 2025
XiaoguangHu01
XiaoguangHu01 previously approved these changes Aug 8, 2025
Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HydrogenSulfate HydrogenSulfate dismissed stale reviews from XiaoguangHu01 and SigureMo via 7f50ef2 August 8, 2025 14:50
SigureMo
SigureMo previously approved these changes Aug 11, 2025
zhwesky2010
zhwesky2010 previously approved these changes Aug 11, 2025
Copy link
Contributor

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HydrogenSulfate HydrogenSulfate dismissed stale reviews from zhwesky2010 and SigureMo via 0e6d63b August 11, 2025 11:12
Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HydrogenSulfate HydrogenSulfate merged commit c096ce1 into PaddlePaddle:develop Aug 12, 2025
72 of 73 checks passed
@HydrogenSulfate HydrogenSulfate deleted the creation_enh2 branch August 12, 2025 02:43
maxiaolong001 pushed a commit to maxiaolong001/Paddle that referenced this pull request Aug 12, 2025
…ddle#74477)

* fix index_elemwentwise_get_gard bug slice-check

* enhance Tensor creation methods

* add static test

* fix UT

* fix  date

* refine code

* fix

* fix UT

* fix

* fix BatchNormDoubleGradKernel

* restore code

* fix

* fix

* fix

* fix for review

* restore requires_grad setting

* fix name

* use full instead of fill_constant

* refine device

* fix

* fix string device

---------

Co-authored-by: zhanghonggeng <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants