Skip to content

Conversation

@xiaoguoguo626807
Copy link
Contributor

PR Category

Execute Infrastructure

PR Types

Bug fixes

Description

pcard-67164

修复assign_out_ op 当输出和输入dtype 不一致的情况,由于infermeta 处理的是输出的meta, 没有处理输入,而此api 又是直接返回输入结果,导致以输入的dtype 处理了x 的数据,导致结果错误。

修复方式:在执行器中,对于特殊的inplace op 采用分享同一个variable 的方式share meta 和 holder, 其他inplace op 采用share buffer 的方式分享数据

@paddle-bot
Copy link

paddle-bot bot commented Oct 16, 2024

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

@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Oct 17, 2024
@PaddlePaddle PaddlePaddle unlocked this conversation Oct 17, 2024
Copy link
Contributor

@zhangbo9674 zhangbo9674 left a comment

Choose a reason for hiding this comment

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

LGTM

@xiaoguoguo626807 xiaoguoguo626807 merged commit af89954 into PaddlePaddle:develop Oct 18, 2024
27 checks passed
@xiaoguoguo626807 xiaoguoguo626807 deleted the assign branch October 18, 2024 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants