From b4fef3974a2e0436a8423bc11a2558a76c104150 Mon Sep 17 00:00:00 2001 From: zhoutianzi666 <39978853+zhoutianzi666@users.noreply.github.com> Date: Fri, 1 Jul 2022 19:06:16 +0800 Subject: [PATCH] template GetWeightCPUData (#44002) --- paddle/fluid/operators/tensorrt/tensorrt_engine_op.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/paddle/fluid/operators/tensorrt/tensorrt_engine_op.h b/paddle/fluid/operators/tensorrt/tensorrt_engine_op.h index b1aa2b2c49e..b0ac285b5d3 100644 --- a/paddle/fluid/operators/tensorrt/tensorrt_engine_op.h +++ b/paddle/fluid/operators/tensorrt/tensorrt_engine_op.h @@ -467,13 +467,6 @@ class TensorRTEngineOp : public framework::OperatorBase { auto stream = reinterpret_cast(dev_ctx).stream(); - PADDLE_ENFORCE_EQ( - runtime_input_names_.empty(), - false, - platform::errors::PreconditionNotMet( - "TensorRT engine needs at least one input, but no input is found. " - "Please check if you set the input correctly.")); - std::vector output_maps = Attr>("output_name_mapping"); -- GitLab