Skip to content

Conversation

@MingMingShangTian
Copy link
Contributor

@MingMingShangTian MingMingShangTian commented Aug 4, 2021

PR types

New features

PR changes

Others

Describe

  • copy boost/any.hpp file to utils,and change its namespace to paddle
  • replace boost::any to paddle::any
  • remove boost library which is the dependence in custom operator. The size of the installation package has been reduced by 9M, from 157M to 148M

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
Copy link
Contributor

Choose a reason for hiding this comment

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

是不是保持和我们的命名风格一致就可以了,any.hpp -> any.h

Copy link
Contributor

@chenwhql chenwhql Aug 9, 2021

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下也不太合适

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好的,我改一下

Shixiaowei02
Shixiaowei02 previously approved these changes Aug 9, 2021
Copy link
Contributor

@chenwhql chenwhql left a comment

Choose a reason for hiding this comment

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

LGTM

@MingMingShangTian MingMingShangTian merged commit 1289292 into PaddlePaddle:develop Aug 10, 2021
@MingMingShangTian MingMingShangTian deleted the boost_any branch August 10, 2021 03:26
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