mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-28 10:51:39 +08:00
Upgrade FDASSERT string format (#121)
* upgrade FDASSERT * Add c_str() for reduce * upgrade FDASSERT flag * upgrade flags * upgrade lu * fix tests cmake * Fix pybind FDASSERT
This commit is contained in:
@@ -127,8 +127,8 @@ bool PaddleSegModel::Postprocess(
|
||||
// 3. shape: 2-D HW
|
||||
FDASSERT(infer_result.dtype == FDDataType::INT64 ||
|
||||
infer_result.dtype == FDDataType::FP32,
|
||||
"Require the data type of output is int64 or fp32, but now it's " +
|
||||
Str(infer_result.dtype) + ".");
|
||||
"Require the data type of output is int64 or fp32, but now it's %s.",
|
||||
Str(infer_result.dtype).c_str());
|
||||
result->Clear();
|
||||
|
||||
if (infer_result.shape.size() == 4) {
|
||||
|
||||
Reference in New Issue
Block a user