未验证 提交 b4fef397 编写于 作者: Z zhoutianzi666 提交者: GitHub

template GetWeightCPUData (#44002)

上级 eb8fc759
......@@ -467,13 +467,6 @@ class TensorRTEngineOp : public framework::OperatorBase {
auto stream =
reinterpret_cast<const platform::CUDADeviceContext &>(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<std::string> output_maps =
Attr<std::vector<std::string>>("output_name_mapping");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册