Skip to content

Conversation

@github-actions
Copy link

PR Category

Execute Infrastructure

PR Types

Bug fixes

Description

PyLayer 拷贝构造函数里缺失部分 attribute 的 copy,这会导致在使用 paddle.grad 时,由于 GradNode 被 copy,部分属性缺失,进而导致段错误的出现

该问题仅在 paddle.grad 部分出现 PyLayer,且其中部分输出不需要梯度时才会复现,由于 tensor.backward 并不涉及 GradNode 的 copy,因此没问题

Cherry-pick of #77150

Close and reopen this PR to trigger CI checks.

@paddle-bot
Copy link

paddle-bot bot commented Dec 31, 2025

你的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 paddle-bot bot added the contributor External developers label Dec 31, 2025
@SigureMo SigureMo closed this Dec 31, 2025
@SigureMo SigureMo reopened this Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants