Skip to content

【stride】Set value when dstplace != srcplace and one tenosr is not contiguous should add check#75794

Merged
xiaoguoguo626807 merged 8 commits intoPaddlePaddle:developfrom
xiaoguoguo626807:set_value
Oct 14, 2025
Merged

【stride】Set value when dstplace != srcplace and one tenosr is not contiguous should add check#75794
xiaoguoguo626807 merged 8 commits intoPaddlePaddle:developfrom
xiaoguoguo626807:set_value

Conversation

@xiaoguoguo626807
Copy link
Copy Markdown
Contributor

@xiaoguoguo626807 xiaoguoguo626807 commented Oct 13, 2025

PR Category

Execute Infrastructure

PR Types

Bug fixes

Description

pcard-67164

dst_tensor place != src_tensor place 时,如果有非连续的输入或输出,需要分情况处理
如果源tensor非连续,可以使用普通copy 函数,把目标tensor 也改成非连续
如果目标tensor 非连续,则报错提示用户修改,否则会得到错误的tensor

@paddle-bot
Copy link
Copy Markdown

paddle-bot Bot commented Oct 13, 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.

@xiaoguoguo626807 xiaoguoguo626807 changed the title 【stride】Set value 【stride】Set value when dstplace != srcplace and one tenosr is not contiguous should add check Oct 13, 2025
luotao1
luotao1 previously approved these changes Oct 13, 2025
Copy link
Copy Markdown
Contributor

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

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

LGTM for @unittest.skipIf

@xiaoguoguo626807 xiaoguoguo626807 merged commit bac79fe into PaddlePaddle:develop Oct 14, 2025
75 of 78 checks passed
@xiaoguoguo626807 xiaoguoguo626807 deleted the set_value branch October 14, 2025 01:13
SigureMo pushed a commit to cattidea/Paddle that referenced this pull request Oct 14, 2025
…tiguous should add check (PaddlePaddle#75794)

* add log

* fix bug

* fix

* delete

* fix conflict

* fix test
xiaoguoguo626807 added a commit to xiaoguoguo626807/Paddle that referenced this pull request Oct 16, 2025
…tiguous should add check (PaddlePaddle#75794)

* add log

* fix bug

* fix

* delete

* fix conflict

* fix test
XiaoguangHu01 pushed a commit that referenced this pull request Oct 18, 2025
…r is not con… (#75891)

* 【stride】Set value when dstplace != srcplace and one tenosr is not contiguous should add check (#75794)

* add log

* fix bug

* fix

* delete

* fix conflict

* fix test

* change test
zhengshengning pushed a commit to zhengshengning/Paddle that referenced this pull request Nov 6, 2025
…tiguous should add check (PaddlePaddle#75794)

* add log

* fix bug

* fix

* delete

* fix conflict

* fix test
zhengshengning added a commit that referenced this pull request Nov 10, 2025
* fix input strided tensor in getitem (#75596)

* 【stride】Set value when dstplace != srcplace and one tenosr is not contiguous should add check (#75794)

* add log

* fix bug

* fix

* delete

* fix conflict

* fix test

* [Slice] Fix big tensor (#76004)

* fix is_custom_device

* rm test case TestSetValueWithStrideError

---------

Co-authored-by: zhanghonggeng <43205915+zhanghonggeng@users.noreply.github.com>
Co-authored-by: xiaoguoguo626807 <100397923+xiaoguoguo626807@users.noreply.github.com>
Co-authored-by: Eddie-Wang <wangjinheng1120@163.com>
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.

3 participants