Skip to content

Commit eee3605

Browse files
authored
fix repeat IS_TRT_VERSION_GE (#75975)
1 parent ed8e5e3 commit eee3605

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

paddle/fluid/inference/tensorrt/engine.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,7 @@ bool TensorRTEngine::Enqueue(nvinfer1::IExecutionContext *context,
196196
if (!with_dynamic_shape()) {
197197
ret = context->enqueue(batch_size, buffers->data(), stream, nullptr);
198198
} else {
199-
#if IS_TRT_VERSION_GE(8500)
200-
ret = context->enqueueV3(stream);
201-
#else
202199
ret = context->enqueueV2(buffers->data(), stream, nullptr);
203-
#endif
204200
}
205201
#endif
206202
return ret;

0 commit comments

Comments
 (0)