From 154070339424d7ab8047cc20707acdb11f27e0c3 Mon Sep 17 00:00:00 2001 From: typhoonzero Date: Fri, 13 Oct 2017 16:45:10 +0800 Subject: [PATCH] fix_pybind_op_reg_nokernel --- paddle/operators/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/operators/CMakeLists.txt b/paddle/operators/CMakeLists.txt index d0924aaf3..75fcc1cda 100644 --- a/paddle/operators/CMakeLists.txt +++ b/paddle/operators/CMakeLists.txt @@ -84,7 +84,7 @@ function(op_library TARGET) endif() # pybind USE_NO_KERNEL_OP - # operators may reuse code from + # HACK: if REGISTER_OP_CPU_KERNEL presents the operator must have kernel file(READ ${TARGET}.cc TARGET_CONTENT) string(REGEX MATCH "REGISTER_OP_CPU_KERNEL" regex_result "${TARGET_CONTENT}") string(REPLACE "_op" "" TARGET "${TARGET}") -- GitLab