Skip to content

[Accuracy diff No.68, 147] Fix accuracy diff for paddle.Tensor.set_ API - #427

Merged
cangtianhuang merged 2 commits into
PFCCLab:mainfrom
ooooo-create:fix_set_
Jul 27, 2025
Merged

cangtianhuang merged 2 commits into
PFCCLab:mainfrom
ooooo-create:fix_set_

Conversation

@ooooo-create

Copy link
Copy Markdown
Contributor

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

@paddle-bot

paddle-bot Bot commented Jul 24, 2025

Copy link
Copy Markdown

Thanks for your contribution!

@cangtianhuang

Copy link
Copy Markdown
Collaborator

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

@cangtianhuang cangtianhuang self-assigned this Jul 27, 2025
@ooooo-create

Copy link
Copy Markdown
Contributor Author

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

已改成加在 random_calculation.txt 中

@cangtianhuang cangtianhuang left a comment •

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Contributor Author

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

在哪里呀

@ooooo-create

Copy link
Copy Markdown
Contributor Author

哦,看到了

@cangtianhuang cangtianhuang left a comment

Copy link
Copy Markdown
Collaborator

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