From 8e65ac5d0bae865ce99d9df236f72411203534a9 Mon Sep 17 00:00:00 2001 From: jiangcheng Date: Thu, 10 Nov 2022 11:12:42 +0800 Subject: [PATCH] fix paddle with cinn cannot link relu op bug (#47793) * fix paddle with cinn cannot link relu op bug * change cmake activation_op to generator_op --- paddle/fluid/framework/paddle2cinn/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/framework/paddle2cinn/CMakeLists.txt b/paddle/fluid/framework/paddle2cinn/CMakeLists.txt index 57ce4d3c56..5b10f7c87f 100644 --- a/paddle/fluid/framework/paddle2cinn/CMakeLists.txt +++ b/paddle/fluid/framework/paddle2cinn/CMakeLists.txt @@ -57,7 +57,8 @@ if(WITH_TESTING) op_registry mul_op activation_op - elementwise_add_op) + elementwise_add_op + generated_op) set_tests_properties(build_cinn_pass_test PROPERTIES LABELS "RUN_TYPE=CINN") cc_test_old(transform_desc_test SRCS transform_desc_test.cc DEPS @@ -86,6 +87,7 @@ if(WITH_TESTING) cinn mul_op activation_op - elementwise_add_op) + elementwise_add_op + generated_op) set_tests_properties(cinn_compiler_test PROPERTIES LABELS "RUN_TYPE=CINN") endif() -- GitLab