-
Notifications
You must be signed in to change notification settings - Fork 5.9k
copy boost/any.hpp to utils and replace boost::any with self defined any #34613
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
copy boost/any.hpp to utils and replace boost::any with self defined any #34613
Conversation
cmake/inference_lib.cmake
Outdated
| SRCS ${PADDLE_SOURCE_DIR}/paddle/fluid/platform/float16.h | ||
| DSTS ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/include/experimental/) | ||
| copy(inference_lib_dist | ||
| SRCS ${PADDLE_SOURCE_DIR}/paddle/fluid/utils/any.hpp |
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.
是不是保持和我们的命名风格一致就可以了,any.hpp -> any.h
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.
此外,是不是新建目录,放到paddle/utils下面比较好,主要考虑如下:
- 我们新组织的Tensor运算库会独立出来,不会依赖于fluid,而是由fluid依赖于Tensor运算库,如果这些utils还在fluid下的话,依赖关系拆不清楚
- 将来更多组件,比如lite也会合入到主repo,也可以共用这些utils,放在fluid下也不太合适
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.
好的,我改一下
chenwhql
left a comment
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.
LGTM
PR types
New features
PR changes
Others
Describe