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( test_comp_static SRCS test_static_prim.cc DEPS static_utils static_prim_api generated_op prim_utils operator elementwise_mul_op activation_op phi_api phi_dygraph_api static_global_utils static_tensor_operants tensor_api operants_manager) if(NOT (NOT WITH_PYTHON AND ON_INFER)) cc_library( init_env_utils SRCS init_env_utils.cc DEPS operants_manager tensor_api eager_tensor_operants static_tensor_operants) cc_test_old( test_comp_eager SRCS test_eager_prim.cc DEPS ${prim_eager_deps} ${prim_generated_deps} prim_utils static_global_utils init_env_utils) endif()