mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00
[Backend]Update sophgo_backend.cc for FP16 data type (#2161)
This commit is contained in:
@@ -248,7 +248,7 @@ bool SophgoBackend::Infer(std::vector<FDTensor>& inputs,
|
||||
***************************************************************/
|
||||
FDDataType SophgoBackend::SophgoTensorTypeToFDDataType(bm_data_type_t type) {
|
||||
if (type == BM_FLOAT16) {
|
||||
return FDDataType::FP32;
|
||||
return FDDataType::FP16;
|
||||
}
|
||||
if (type == BM_FLOAT32) {
|
||||
return FDDataType::FP32;
|
||||
|
Reference in New Issue
Block a user