forked from PaddlePaddle/Paddle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Eager Dygraph AutoCodeGen dependencies #1 (PaddlePaddle#37574)
- Loading branch information
1 parent
e05540f
commit fcd44b5
Showing
4 changed files
with
854 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
set(EAGER_GENERETOR_DEPS ${GLOB_OP_LIB} ${GLOB_OPERATOR_DEPS} pybind proto_desc executor layer tracer engine imperative_profiler imperative_flag) | ||
|
||
add_executable(eager_generator eager_generator.cc) | ||
target_link_libraries(eager_generator ${EAGER_GENERETOR_DEPS}) | ||
|
||
get_property (os_dependency_modules GLOBAL PROPERTY OS_DEPENDENCY_MODULES) | ||
target_link_libraries(eager_generator ${os_dependency_modules}) | ||
|
||
# Prepare file structure | ||
message("Generate dygraph file structure at path: ${PADDLE_SOURCE_DIR}/paddle/fluid/eager/generated") | ||
execute_process( | ||
COMMAND "${PYTHON_EXECUTABLE}" "${PADDLE_SOURCE_DIR}/paddle/fluid/eager/auto_code_generator/generate_file_structures.py" "${PADDLE_SOURCE_DIR}/paddle/fluid/eager/" | ||
) | ||
|
||
add_custom_target(eager_codegen | ||
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/eager_generator" "${PADDLE_SOURCE_DIR}/paddle/fluid/eager/api/generated/fluid_generated" | ||
DEPENDS eager_generator | ||
VERBATIM) |
Oops, something went wrong.