-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
cmake/operators.cmake
Outdated
if(NOT ${TARGET} STREQUAL "activation") | ||
file(APPEND ${pybind_file} "USE_NO_KERNEL_OP(${TARGET});\n") | ||
set(pybind_flag 1) | ||
endif() |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
此处判断冗余,已删除。谢谢!
cmake/operators.cmake
Outdated
# 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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
上面加了处理之后这里还需要对activation再单独处理吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
此处判断冗余,已删除。谢谢!
PR types
Others
PR changes
Ops
Describe
基于yaml生成broadcast_tensors、pow的静态图代码,并移除原有代码