Skip to content
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

Generate some static graph ops #49906

Merged
merged 5 commits into from
Feb 3, 2023
Merged

Conversation

heavyrain-lzy
Copy link
Contributor

PR types

Others

PR changes

Ops

Describe

基于yaml生成broadcast_tensors、pow的静态图代码,并移除原有代码

@paddle-bot
Copy link

paddle-bot bot commented Jan 17, 2023

你的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.

Comment on lines 580 to 583
if(NOT ${TARGET} STREQUAL "activation")
file(APPEND ${pybind_file} "USE_NO_KERNEL_OP(${TARGET});\n")
set(pybind_flag 1)
endif()
Copy link
Contributor

Choose a reason for hiding this comment

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

此处是否可以根据 WITH_GPU 来判断,不使用这种 trick 的方式?

Is this trick needed? Can we use WITH_GPU to replace this trick?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

此处判断冗余,已删除。谢谢!

Comment on lines 578 to 582
# TODO:(lizhiyu) This just for activation. If not using this assert,
# there will be "USE_NO_KERNEL_OP(activation)"in pybind.h in the case of WITH_GPU=OFF.
if(NOT ${TARGET} STREQUAL "activation")
file(APPEND ${pybind_file} "USE_NO_KERNEL_OP(${TARGET});\n")
set(pybind_flag 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

上面加了处理之后这里还需要对activation再单独处理吗?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

此处判断冗余,已删除。谢谢!

@zyfncg zyfncg merged commit 85490f7 into PaddlePaddle:develop Feb 3, 2023
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.

3 participants