Skip to content

Conversation

@algorithm1832
Copy link
Contributor

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

  • fix errors while using GetItemFromArgsOrKWArgs to get PyObject from kwargs

说明:

GetItemFromArgsOrKWArgs函数本身是为了从输入argskwargs中提取给定对象的,为了检验kwargs的数量,接收传入参数*remaining_kwargs,每从kwargs中读取一次,remaining_kwargs都会减一。

然而在kwargs检验完毕之后,也会存在需要从输入中读取对象的情况,此时调用此函数,remaining_kwargs会继续减小,直到无法继续读取报错,理论上此时remaining_kwargs已经无意义。

Used AI Studio

@paddle-bot
Copy link

paddle-bot bot commented Jan 7, 2026

你的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 Jan 7, 2026
Copy link
Contributor

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhwesky2010 zhwesky2010 changed the title [WIP] [Code Generation] Fix get PyObject from kwargs [Code Generation] Fix get PyObject from kwargs Jan 8, 2026
@algorithm1832
Copy link
Contributor Author

CI-H / Coverage Build 实际状态为失败,但显示为成功,因此没有re-run,我稍后推送一个空白commit重新触发一下

@zhwesky2010 zhwesky2010 merged commit 8f23ca2 into PaddlePaddle:develop Jan 9, 2026
58 of 59 checks passed
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