Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

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

Open NKNaN opened this issue 6 months ago • 1 comments

PR Category

Execute Infrastructure

PR Types

Improvements

Description

![image](https://github.com/user-attachments/assets/9ef0cce9-8a84-489a-96ee-565903aa241d)
![image](https://github.com/user-attachments/assets/623742f8-cb88-40f5-b81a-518b0b216e46)
精度差异的原因应该是原kernel的实现导致内存重叠了,修改了一下实现方法。

回测结果:
![image](https://github.com/user-attachments/assets/1b4166ff-84d0-42e0-94fb-9691980525a3)

update: aistudio 复现 PaddleAPITest 的问题原因是 torch.Tensor.set_ 会有内存重叠的问题,paddle.Tensor.set_ 不会: image

但在本机(windows)上发现 torch.Tensor.set_ 不会产生内存重叠的问题 image

本机 gpu 上 paddle.Tensor.set_ 不会产生 image

本机 cpu 上 paddle.Tensor.set_ 会产生 image

不知道这个问题和系统是否有关

NKNaN avatar Jun 12 '25 14:06 NKNaN

你的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.

paddle-bot[bot] avatar Jun 12 '25 14:06 paddle-bot[bot]

Sorry to inform you that 8ffd2fe's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

paddle-ci-bot[bot] avatar Jun 24 '25 02:06 paddle-ci-bot[bot]

还更新么

luotao1 avatar Jul 18 '25 03:07 luotao1

还更新么

不了

NKNaN avatar Jul 22 '25 10:07 NKNaN