From 2066745847130bcc9f419b2b20d5e744daf8735e Mon Sep 17 00:00:00 2001 From: qingqing01 Date: Wed, 25 Dec 2019 10:38:34 +0800 Subject: [PATCH] Pack imperative/layer into paddle_framework.so (#21921) * Pack imperative/layer into paddle_framework.so --- paddle/fluid/framework/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/framework/CMakeLists.txt b/paddle/fluid/framework/CMakeLists.txt index 6aba7c685a8..dec05b273f8 100644 --- a/paddle/fluid/framework/CMakeLists.txt +++ b/paddle/fluid/framework/CMakeLists.txt @@ -262,7 +262,8 @@ message(STATUS "branch: ${PADDLE_BRANCH}") configure_file(commit.h.in commit.h) -set(FLUID_FRAMEWORK_MODULES proto_desc memory lod_tensor executor data_feed_proto) + +set(FLUID_FRAMEWORK_MODULES proto_desc memory lod_tensor executor data_feed_proto layer) if(WIN32) sep_library(paddle_framework DEPS ${FLUID_FRAMEWORK_MODULES}) else(WIN32) @@ -270,7 +271,9 @@ else(WIN32) endif(WIN32) cc_library(paddle_framework_shared - SHARED SRCS executor.cc operator.cc ${CMAKE_CURRENT_SOURCE_DIR}/c/c_api.cc + SHARED SRCS executor.cc operator.cc + ${CMAKE_CURRENT_SOURCE_DIR}/c/c_api.cc + ${CMAKE_SOURCE_DIR}/paddle/fluid/imperative/layer.cc DEPS ${FLUID_FRAMEWORK_MODULES}) get_property(os_dependency_modules GLOBAL PROPERTY OS_DEPENDENCY_MODULES) set_target_properties(paddle_framework_shared PROPERTIES OUTPUT_NAME paddle_framework) -- GitLab