-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Split paddle_capi_whole into paddle_nn_engine and paddle_layers two s… #4932
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
Conversation
paddle/capi/CMakeLists.txt
Outdated
# No shared library for iOS | ||
# Link the static library for inference | ||
cc_library(paddle_nn_engine DEPS paddle_capi paddle_utils paddle_parameter paddle_math paddle_cuda paddle_proto) | ||
cc_library(paddle_layers DEPS paddle_function paddle_gserver) |
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.
About the libraries' name, how about to name them paddle_capi_engine
and paddle_capi_layers
?
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.
OK
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.
Done.
paddle/capi/CMakeLists.txt
Outdated
@@ -55,7 +57,7 @@ endif() | |||
install(FILES ${CAPI_HEADERS} DESTINATION include/paddle) | |||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h DESTINATION include/paddle) | |||
if(ANDROID) | |||
install(TARGETS paddle_capi_whole paddle_capi_shared | |||
install(TARGETS paddle_nn_engine paddle_layers paddle_capi_shared |
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.
Do we need to install paddle_capi_whole
for a period of time?
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.
Done.
paddle/capi/CMakeLists.txt
Outdated
paddle_proto | ||
paddle_pserver | ||
paddle_network) | ||
cc_library(paddle_capi_whole DEPS paddle_capi ${PADDLE_CAPI_INFER_LIBS}) |
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.
line 53
is the same as line 41
. It can be moved out of the if
statement.
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.
Done.
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
…tatic libraries.
Here is a use case PaddlePaddle/Mobile#13.