CMakeLists.txt 1.1 KB
Newer Older
1 2 3 4 5 6 7 8 9
set(eager_deps pten pten_api hook_utils tensor_utils utils global_utils backward pten_tensor legacy autograd_meta grad_node_info grad_tensor_holder gradient_accumulation accumulation_node)
set(fluid_deps tracer layer proto_desc operator op_registry variable_helper memcpy)
set(generated_deps dygraph_function dygraph_node)

if(NOT DEFINED ON_INFER)
    message("Performing Eager Dygraph Auto Code Generation")
    add_subdirectory(auto_code_generator)
endif()

10
add_subdirectory(api)
11
add_subdirectory(accumulation)
12
add_subdirectory(legacy)
13

14
cc_library(grad_node_info SRCS grad_node_info.cc DEPS pten pten_api)
15
cc_library(grad_tensor_holder SRCS grad_tensor_holder.cc DEPS grad_node_info gradient_accumulation)
16 17

cc_library(autograd_meta SRCS autograd_meta.cc DEPS pten pten_api)
18
cc_library(utils SRCS utils.cc DEPS pten pten_api global_utils layer proto_desc operator op_registry variable_helper memcpy scale_op autograd_meta)
19
cc_library(legacy SRCS ${DYGRAPH_LEGACY} DEPS global_utils proto_desc operator pten pten_api op_registry variable_helper memcpy)
20
cc_library(backward SRCS backward.cc DEPS grad_tensor_holder utils autograd_meta grad_node_info)
21 22

add_subdirectory(tests)