File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -195,8 +195,13 @@ op_library(sequence_pool_op DEPS sequence_pooling)
195
195
op_library (lstm_op DEPS sequence2batch lstm_compute )
196
196
op_library (conv_transpose_op DEPS vol2col )
197
197
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 ()
200
205
op_library (recurrent_op SRCS recurrent_op.cc DEPS executor )
201
206
202
207
list (REMOVE_ITEM GENERAL_OPS ${DEPS_OPS} )
You can’t perform that action at this time.
0 commit comments