[Paddle Lite] Support stable-diffusion model (#830)

* support stable-diffusion model for paddlelite

* update code
This commit is contained in:
shentanyue
2022-12-09 13:20:33 +08:00
committed by GitHub
parent b0988bf423
commit 3c05c74513
3 changed files with 14 additions and 8 deletions

View File

@@ -67,9 +67,11 @@ FDDataType CTypeToFDDataType() {
return FDDataType::FP32;
} else if (std::is_same<T, double>::value) {
return FDDataType::FP64;
} else if (std::is_same<T, int8_t>::value) {
return FDDataType::INT8;
}
FDASSERT(false,
"CTypeToFDDataType only support int32/int64/float32/float64 now.");
FDASSERT(false, "CTypeToFDDataType only support "
"int8/int32/int64/float32/float64 now.");
return FDDataType::FP32;
}