Skip to content

Conversation

@ooooo-create
Copy link
Contributor

x.set_(y,shape,stride,offest)
当 y 被根据 shape, stride, offset 解释成超过 y 存储的索引,行为是未定义的,不同平台设备可能不一样
ref: PaddlePaddle/Paddle#73294

@paddle-bot
Copy link

paddle-bot bot commented Jul 24, 2025

Thanks for your contribution!

@cangtianhuang
Copy link
Collaborator

根据 PaddlePaddle/Paddle#73294 的 pr 描述,所以这是 torch 的问题吗?

@cangtianhuang cangtianhuang self-assigned this Jul 27, 2025
@ooooo-create
Copy link
Contributor Author

根据 PaddlePaddle/Paddle#73294 的 pr 描述,所以这是 torch 的问题吗?

已改成加在 random_calculation.txt 中

Copy link
Collaborator

@cangtianhuang cangtianhuang left a comment

Choose a reason for hiding this comment

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

这样的话 error_api 中也可以删去了~辛苦:)

@ooooo-create
Copy link
Contributor Author

这样的话 error_api 中也可以删去了~辛苦:)

在哪里呀

@ooooo-create
Copy link
Contributor Author

哦,看到了

Copy link
Collaborator

@cangtianhuang cangtianhuang left a comment

Choose a reason for hiding this comment

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

LGTM

@cangtianhuang cangtianhuang merged commit fc5c62a into PFCCLab:main Jul 27, 2025
@ooooo-create ooooo-create deleted the fix_set_ branch September 29, 2025 09:46
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.

2 participants