Skip to content

Commit c365c61

Browse files
authored
Merge pull request #5445 from reyoung/feature/fix_dynamic_rnn_compile
Add gtest for drnn
2 parents ce08645 + fdaebc3 commit c365c61

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

paddle/operators/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,13 @@ op_library(sequence_pool_op DEPS sequence_pooling)
195195
op_library(lstm_op DEPS sequence2batch lstm_compute)
196196
op_library(conv_transpose_op DEPS vol2col)
197197
op_library(gru_op DEPS sequence2batch gru_compute)
198-
op_library(dynamic_recurrent_op SRCS dynamic_recurrent_op.cc rnn/recurrent_op_utils.cc
199-
DEPS net_op tensor_array)
198+
if(WITH_TESTING)
199+
op_library(dynamic_recurrent_op SRCS dynamic_recurrent_op.cc rnn/recurrent_op_utils.cc
200+
DEPS net_op tensor_array gtest)
201+
else()
202+
op_library(dynamic_recurrent_op SRCS dynamic_recurrent_op.cc rnn/recurrent_op_utils.cc
203+
DEPS net_op tensor_array)
204+
endif()
200205
op_library(recurrent_op SRCS recurrent_op.cc DEPS executor)
201206

202207
list(REMOVE_ITEM GENERAL_OPS ${DEPS_OPS})

0 commit comments

Comments
 (0)