Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@xiaoguoguo626807
Copy link
Contributor

@xiaoguoguo626807 xiaoguoguo626807 commented Jul 28, 2025

PR Category

Execute Infrastructure

PR Types

Improvements

Description

pcard-67164

tensor.copy_(tensor); tensor.set_value(tensor) 逻辑适配非连续数据的拷贝

import paddle

x = paddle.randn((5, 3), dtype=paddle.paddle.float16)
v = paddle.ones((5, 1), dtype=paddle.float16)
x[:, 2:].copy_(v, False)
print("x = ",x)

适配前结果:
截屏2025-07-28 16 35 22

适配后结果:
截屏2025-07-28 16 33 53

@paddle-bot
Copy link

paddle-bot bot commented Jul 28, 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

❌ Patch coverage is 86.20690% with 4 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@60ddf0d). Learn more about missing BASE report.

Files with missing lines Patch % Lines
paddle/phi/api/lib/tensor_method.cc 84.61% 4 Missing ⚠️

❌ Your patch status has failed because the patch coverage (86.20%) 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   #74271   +/-   ##
==========================================
  Coverage           ?   86.20%           
==========================================
  Files              ?        3           
  Lines              ?       29           
  Branches           ?        0           
==========================================
  Hits               ?       25           
  Misses             ?        4           
  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.

@swgu98 swgu98 merged commit 53b6276 into PaddlePaddle:develop Jul 30, 2025
67 of 69 checks passed
@xiaoguoguo626807 xiaoguoguo626807 deleted the strdie_copy branch July 31, 2025 07:45
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.

4 participants