Skip to content

[API Compatibility] Enhance Tensor. creation methods#74526

Merged
HydrogenSulfate merged 48 commits into
PaddlePaddle:developfrom
HydrogenSulfate:add_33
Aug 14, 2025
Merged

[API Compatibility] Enhance Tensor. creation methods#74526
HydrogenSulfate merged 48 commits into
PaddlePaddle:developfrom
HydrogenSulfate:add_33

Conversation

@HydrogenSulfate
Copy link
Copy Markdown
Contributor

@HydrogenSulfate HydrogenSulfate commented Aug 11, 2025

PR Category

User Experience

PR Types

New features

Description

Pcard-75624

添加 Tensor. 下的四个张量创建方法和对应单测

Tensor.new_full
Tensor.new_ones
Tensor.new_empty
Tensor.new_zeros

SigureMo
SigureMo previously approved these changes Aug 12, 2025
Copy link
Copy Markdown
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

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

LGTMeow 🐾

Copy link
Copy Markdown
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.

需要补充out参数

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 12, 2025

Codecov Report

❌ Patch coverage is 89.28571% with 6 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@b5cf3c5). Learn more about missing BASE report.

⚠️ Current head 99528ca differs from pull request most recent head 70f7dff

Please upload reports for the commit 70f7dff to get more accurate results.

Files with missing lines Patch % Lines
python/paddle/base/dygraph/math_op_patch.py 80.76% 5 Missing ⚠️
python/paddle/pir/math_op_patch.py 96.42% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (89.28%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop   #74526   +/-   ##
==========================================
  Coverage           ?   89.28%           
==========================================
  Files              ?        3           
  Lines              ?       56           
  Branches           ?        0           
==========================================
  Hits               ?       50           
  Misses             ?        6           
  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.

zhwesky2010
zhwesky2010 previously approved these changes Aug 13, 2025
Copy link
Copy Markdown
Contributor

@jeff41404 jeff41404 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 62b1f03 into PaddlePaddle:develop Aug 14, 2025
79 of 84 checks passed
@HydrogenSulfate HydrogenSulfate deleted the add_33 branch August 14, 2025 06:41
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.

8 participants