Skip to content

[Eager] Remove uncessary unwrapping #72862

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 23, 2025

Conversation

HydrogenSulfate
Copy link
Contributor

@HydrogenSulfate HydrogenSulfate commented May 22, 2025

PR Category

User Experience

PR Types

Bug fixes

Description

pcard-67164

原代码来自:#37813https://github.com/PaddlePaddle/Paddle/pull/37813/files#diff-816e3e61caad6341f966a51b9e3e7f308096b860019e5ab5a0647a4ac33e23e0R380

删除动态图下GetTensorFromPyObject开头位置对tuple类型输入不必要的"取首元素"操作,否则如下代码不会触发预期的报错

loss = paddle.nn.functional.mse_loss((x, x), label)

Copy link

paddle-bot bot commented May 22, 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.

Copy link
Contributor

@wanghuancoder wanghuancoder left a comment

Choose a reason for hiding this comment

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

LGTM

@HydrogenSulfate HydrogenSulfate merged commit 44c767a into PaddlePaddle:develop May 23, 2025
142 of 155 checks passed
@HydrogenSulfate HydrogenSulfate deleted the remove_unwrap branch May 23, 2025 16:19
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.

2 participants