Skip to content

Conversation

@bukejiyu
Copy link
Contributor

@bukejiyu bukejiyu commented Oct 30, 2025

PR Category

Inference

PR Types

Others

Description

pcard-71500
修复从连续 CPU Tensor 拷贝到不连续 GPU Tensor挂掉的问题

import paddle

dst = paddle.zeros([7168, 1024], dtype="bfloat16")
src = paddle.ones([7168, 576], dtype="bfloat16", device='cpu')

dst = dst[..., :576]
dst.copy_(src)

@paddle-bot
Copy link

paddle-bot bot commented Oct 30, 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@b062fff). Learn more about missing BASE report.

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

@bukejiyu bukejiyu changed the title [infernce]cpu contiguous [infernce]Fix inconsistent tensor contiguity between CPU and GPU Oct 31, 2025
@bukejiyu bukejiyu changed the title [infernce]Fix inconsistent tensor contiguity between CPU and GPU [infernce]Fix bug when copying contiguous CPU tensor to non-contiguous GPU tensor Oct 31, 2025
Copy link
Contributor

@wanghuancoder wanghuancoder left a comment

Choose a reason for hiding this comment

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

LGTM

@yuanlehome yuanlehome merged commit 8e2251f into PaddlePaddle:develop Nov 4, 2025
76 of 78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants