CMakeLists.txt 431 字节
Newer Older
1 2 3
include_directories(${CMAKE_CURRENT_BINARY_DIR})

set(OPITMIZER_SRCS
4 5 6
    adadelta_optimizer.cc
    adagrad_optimizer.cc
    adam_optimizer.cc
7 8
    optimizer.cc
    parameter_optimizer.cc
D
dzhwinter 已提交
9
    sgd_optimizer.cc
10 11
  )

D
dzhwinter 已提交
12
add_library(paddle_optimizer STATIC ${OPITMIZER_SRCS})
Y
Yu Yang 已提交
13
add_dependencies(paddle_optimizer paddle_proto)
14

15 16 17 18
if(WITH_TESTING)
  add_simple_unittest(serialization_test)
  add_simple_unittest(parameter_optimizer_test)
endif()