CMakeLists.txt 1.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
cc_test(
  test_egr_task_tensor_utils
  SRCS tensor_utils_test.cc
  DEPS ${eager_deps})
cc_test(
  test_egr_task_eager_utils
  SRCS eager_utils_test.cc
  DEPS ${eager_deps})
cc_test(
  test_egr_task_forward_autograd
  SRCS forward_autograd_test.cc
  DEPS ${eager_deps} ${fluid_deps} eager_scale scale_node)
cc_test(
  test_egr_task_nan_inf_utils
  SRCS nan_inf_utils_test.cc
  DEPS eager_nan_inf_utils)
17

18
if(NOT ((NOT WITH_PYTHON) AND ON_INFER))
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
  cc_test(
    test_egr_task_hook
    SRCS hook_test.cc
    DEPS ${eager_deps} ${fluid_deps} ${generated_deps} eager_scale scale_node)
  cc_test(
    test_egr_task_backward
    SRCS backward_test.cc
    DEPS ${eager_deps} ${fluid_deps} ${generated_deps} eager_scale scale_node)
  cc_test(
    test_egr_task_grad
    SRCS grad_test.cc
    DEPS ${eager_deps} ${fluid_deps} ${generated_deps} eager_scale scale_node)
  cc_test(
    test_egr_task_fwd_bwd_joint
    SRCS fwd_bwd_joint_test.cc
    DEPS ${eager_deps} ${fluid_deps} ${generated_deps} eager_scale scale_node)
  cc_test(
    test_egr_task_cross_batch
    SRCS cross_batch_accumulation_test.cc
    DEPS ${eager_deps} ${fluid_deps} ${generated_deps} eager_scale scale_node)
  cc_test(
    test_egr_task_hook_intermidiate
    SRCS hook_test_intermidiate.cc
    DEPS ${eager_deps} ${fluid_deps} ${generated_deps} dygraph_node)
  cc_test(
    test_egr_task_autocodegen
    SRCS generated_test.cc
    DEPS ${eager_deps} ${fluid_deps} ${generated_deps})
47
endif()