mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-17 06:00:59 +08:00
[Paddle Lite] Support stable-diffusion model (#830)
* support stable-diffusion model for paddlelite * update code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user