CMakeLists.txt 846 字节
Newer Older
J
Jiabin Yang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
set(prim_eager_deps
    phi_api
    phi_dygraph_api
    hook_utils
    tensor_utils
    utils
    global_utils
    backward
    phi_tensor
    tracer
    layer
    autograd_meta
    eager_nan_inf_utils
    grad_node_info
    grad_tensor_holder
    custom_operator_node)

set(prim_generated_deps final_dygraph_function final_dygraph_node
                        dygraph_function dygraph_node)

cc_test_old(
22
  test_comp_static
J
Jiabin Yang 已提交
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
  SRCS
  test_static_prim.cc
  DEPS
  static_utils
  static_prim_api
  generated_op
  prim_utils
  operator
  elementwise_mul_op
  scale_op
  activation_op
  phi_api
  phi_dygraph_api
  static_global_utils)

if(NOT (NOT WITH_PYTHON AND ON_INFER))
  cc_test_old(
40
    test_comp_eager
J
Jiabin Yang 已提交
41 42 43 44 45 46 47 48
    SRCS
    test_eager_prim.cc
    DEPS
    ${prim_eager_deps}
    ${prim_generated_deps}
    prim_utils
    static_global_utils)
endif()