Skip to content

Commit 7a9c89f

Browse files
authored
Merge pull request PaddlePaddle#4105 from Yancey1989/fix_op_dep
Delete unused Op dependence in CMakeList
2 parents 0e46f5e + 6c59f94 commit 7a9c89f

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

paddle/operators/CMakeLists.txt

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function(op_library TARGET)
77
set(OP_LIBRARY ${TARGET} ${OP_LIBRARY} PARENT_SCOPE)
88
set(cc_srcs)
99
set(cu_srcs)
10-
set(op_common_deps operator op_registry)
10+
set(op_common_deps operator op_registry math_function)
1111
set(options "")
1212
set(oneValueArgs "")
1313
set(multiValueArgs SRCS DEPS)
@@ -51,17 +51,10 @@ endfunction()
5151
add_subdirectory(math)
5252

5353
set(DEPS_OPS
54-
identity_op
55-
minus_op
56-
mul_op
57-
recurrent_op
58-
scale_op)
59-
op_library(identity_op DEPS scale_op)
60-
op_library(minus_op DEPS scale_op)
61-
op_library(mul_op DEPS math_function)
54+
recurrent_op)
55+
6256
op_library(recurrent_op SRCS recurrent_op.cc rnn/recurrent_op_utils.cc
6357
DEPS framework_proto tensor operator net_op)
64-
op_library(scale_op DEPS net_op)
6558

6659
list(REMOVE_ITEM GENERAL_OPS ${DEPS_OPS})
6760
foreach(src ${GENERAL_OPS})

0 commit comments

Comments
 (0)