【stride】Set value when dstplace != srcplace and one tenosr is not contiguous should add check#75794
Merged
xiaoguoguo626807 merged 8 commits intoPaddlePaddle:developfrom Oct 14, 2025
Merged
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
luotao1
previously approved these changes
Oct 13, 2025
Contributor
luotao1
left a comment
There was a problem hiding this comment.
LGTM for @unittest.skipIf
luotao1
approved these changes
Oct 13, 2025
bac79fe
into
PaddlePaddle:develop
75 of 78 checks passed
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
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Category
Execute Infrastructure
PR Types
Bug fixes
Description
pcard-67164
dst_tensor place != src_tensor place 时,如果有非连续的输入或输出,需要分情况处理
如果源tensor非连续,可以使用普通copy 函数,把目标tensor 也改成非连续
如果目标tensor 非连续,则报错提示用户修改,否则会得到错误的tensor