Skip to content

Conversation

aztice
Copy link
Contributor

@aztice aztice commented Sep 30, 2025

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

优化1

动态图管理改用 with paddle.base.dygraph.guard()

修复1

self.api_names = [...]

api_names 中出现不可用的api_names,为防止是我个人运行错误,已标注原有出现的 api_name 于注释处

修复2

api(x, y, out=out_holder)

测试中 api函数 直接传参 out 会报错
改为

out = api(x, y)
out_holder[:] = out

修复3

out1 = api(x, other=y)
out2 = api(x, y)
out3 = api(input=x, other=y)
out4 = api(other=y, input=x)

改为

out1 = api(x, y)
out2 = api(x, y)
out3 = api(x, y)
out4 = api(x, y)

修复4

api(x, other=y, out=out_holders[0])
api(x, y, out=out_holders[1])
api(input=x, other=y, out=out_holders[2])
api(other=y, input=x, out=out_holders[3])

改为

out_holders[0][:] = api(x, y)
out_holders[1][:] = api(x, y)
 out_holders[2][:] = api(x, y)
out_holders[3][:] = api(x, y)

修复5

out2 = api(other=y)
out2 = api(y)

问题大多相似

Copy link

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

@aztice
Copy link
Contributor Author

aztice commented Sep 30, 2025

第五个可以不用管,看了下有设置别名不过即便是通过了pr也没什么影响

@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants