diff --git a/paddle/fluid/inference/tensorrt/engine.h b/paddle/fluid/inference/tensorrt/engine.h index aa5a7657e28cd5d52a957788eb6c0d9008711b5b..01c9a0802d729f8dc213d3e3bedf8bf5f8bcccbe 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; }