From 097402d9097b571c0dd4e89b768931444d33e0f1 Mon Sep 17 00:00:00 2001 From: gaoziyuan <88373061+gzy19990617@users.noreply.github.com> Date: Mon, 27 Feb 2023 13:26:10 +0800 Subject: [PATCH] change message info (#50546) --- paddle/fluid/inference/tensorrt/engine.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/inference/tensorrt/engine.h b/paddle/fluid/inference/tensorrt/engine.h index aa5a7657e28..01c9a0802d7 100644 --- a/paddle/fluid/inference/tensorrt/engine.h +++ b/paddle/fluid/inference/tensorrt/engine.h @@ -69,10 +69,14 @@ TRT_DT FluidDataType2TRT(FluidDT type) { #if IS_TRT_VERSION_GE(8400) case FluidDT::VarType_Type_BOOL: return TRT_DT::kBOOL; + #endif default: PADDLE_THROW(platform::errors::InvalidArgument( - "unknown fluid datatype in TRT op converter")); + "unsupported datatype in TRT op converter, type: %s. " + "Boolean type is supported as TRT input/output " + "using TensorRT v8.4+.", + VarType_Type_Name(type))); } return TRT_DT::kINT32; } -- GitLab