Skip to content

Conversation

@DanielSun11
Copy link
Contributor

@DanielSun11 DanielSun11 commented Sep 1, 2025

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

修复python c code gen生成时的bug

  • 改变动态图中从GetTensorFromArgsOrKWArgs 返回值获取Tensor的方式。从原来的copy变成引用,确保往下传递的Tensor和Python向C++传递的Tensor是同一个。
  • 将argmax、argmin的改为用装饰器代替下沉,避免args mapper导致的Tensor拷贝。
  • 将matmul改为下沉实现

@paddle-bot
Copy link

paddle-bot bot commented Sep 1, 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

@XiaoguangHu01 XiaoguangHu01 merged commit f6e29de into PaddlePaddle:release/3.2 Sep 1, 2025
111 of 118 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants