Skip to content

Conversation

@HydrogenSulfate
Copy link
Contributor

@HydrogenSulfate HydrogenSulfate commented Aug 27, 2025

PR Category

User Experience

PR Types

New features

Description

Pcard-75624

为以下API新增pin_memory参数,并更新对应单测

  1. paddle.arange
  2. paddle.empty_like
  3. paddle.eye
  4. paddle.full
  5. paddle.full_like
  6. paddle.ones
  7. paddle.ones_like
  8. paddle.randn
  9. paddle.zeros
  10. paddle.zeros_like
  11. paddle.Tensor.new_ones
  12. paddle.Tensor.new_full
  13. paddle.Tensor.new_empty
  14. paddle.Tensor.new_zeros

@paddle-bot
Copy link

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

@HydrogenSulfate HydrogenSulfate changed the title support pin_memory for paddle.randn [API Compatiblity] support pin_memory for paddle.randn Aug 27, 2025
@HydrogenSulfate HydrogenSulfate changed the title [API Compatiblity] support pin_memory for paddle.randn [API Compatiblity] support pin_memory for paddle.randn Aug 27, 2025
@HydrogenSulfate HydrogenSulfate changed the title [API Compatiblity] support pin_memory for paddle.randn [API Compatiblity] support pin_memory for 10 API Aug 27, 2025
@HydrogenSulfate HydrogenSulfate force-pushed the add_pin_memory_for_randn branch from 390f304 to 2305955 Compare August 27, 2025 07:38
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 changed the title [API Compatiblity] support pin_memory for 10 API [API Compatiblity] support pin_memory for 14 API Aug 28, 2025
@HydrogenSulfate HydrogenSulfate changed the title [API Compatiblity] support pin_memory for 14 API [API Compatiblity] support pin_memory for 14 API Aug 28, 2025
@HydrogenSulfate HydrogenSulfate changed the title [API Compatiblity] support pin_memory for 14 API [API Compatiblity] support pin_memory argument for 14 API Aug 28, 2025
@codecov-commenter
Copy link

codecov-commenter commented Aug 28, 2025

Codecov Report

❌ Patch coverage is 41.53846% with 38 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@8de8d6a). Learn more about missing BASE report.

Files with missing lines Patch % Lines
python/paddle/tensor/creation.py 38.00% 31 Missing ⚠️
python/paddle/tensor/random.py 45.45% 6 Missing ⚠️
python/paddle/device/__init__.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop   #74918   +/-   ##
==========================================
  Coverage           ?   41.53%           
==========================================
  Files              ?        4           
  Lines              ?       65           
  Branches           ?        0           
==========================================
  Hits               ?       27           
  Misses             ?       38           
  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 merged commit 69ef801 into PaddlePaddle:develop Aug 28, 2025
82 of 85 checks passed
@HydrogenSulfate HydrogenSulfate deleted the add_pin_memory_for_randn branch August 28, 2025 07:03
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.

6 participants