Skip to content

Commit aa4f685

Browse files
committed
fix compiler error when do not have TensorRT library
1 parent 211e131 commit aa4f685

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

paddle/fluid/operators/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ op_library(softmax_op DEPS softmax)
227227
op_library(sequence_softmax_op DEPS softmax)
228228
if (WITH_GPU AND TENSORRT_FOUND)
229229
op_library(tensorrt_engine_op DEPS tensorrt_engine)
230+
else()
231+
set(DEPS_OPS ${DEPS_OPS} tensorrt_engine_op)
230232
endif()
231233
op_library(sum_op DEPS selected_rows_functor)
232234
op_library(sgd_op DEPS selected_rows_functor)

0 commit comments

Comments
 (0)