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

[PHI decoupling] Move fluid op generator into fluid #47714

Merged

Conversation

chenwhql
Copy link
Contributor

@chenwhql chenwhql commented Nov 7, 2022

PR types

Others

PR changes

Others

Describe

[PHI decoupling] Move fluid op generator into fluid

为什么需要移动这部分代码?

  1. PHI独立编译

op生成工具的代码include了fluid中的文件,需要移出去

  1. PHI算子设计

PHI中的算子定义是配置式的,设计上是希望各执行架构结合自己的需求,基于同一套配置式算子定义,生成自己的算子实现,因此各执行架构的算子生成代码需要在各自目录体系中:

  • phi c++ api:paddle/phi/api/yaml/generator
  • fluid op: 本PR之前在paddle/phi/api/yaml/generator,本PR移动到paddle/fluid/operators/generator
  • eager api: paddle/fluid/eager/auto_code_generator

phi/ops/compat目录下的sig.cc按理说也应该移到fluid,但这些除了给fluid用,也在给infrt用,infrt是不能依赖fluid的,所以暂时不移动,后面是否移动需要看infrt后续的规划

@paddle-bot
Copy link

paddle-bot bot commented Nov 7, 2022

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

YuanRisheng
YuanRisheng previously approved these changes Nov 8, 2022
zyfncg
zyfncg previously approved these changes Nov 8, 2022
Comment on lines 205 to 207
if(NOT PYTHONINTERP_FOUND)
find_package(PythonInterp REQUIRED)
endif()
Copy link
Contributor

Choose a reason for hiding this comment

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

这里好像和上面重复了

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, thx

@chenwhql chenwhql dismissed stale reviews from zyfncg and YuanRisheng via 73994d1 November 8, 2022 13:10
Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

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

LGTM

@chenwhql chenwhql merged commit f369b2b into PaddlePaddle:develop Nov 9, 2022
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.

6 participants