Skip to content

Commit

Permalink
[Backend]Update sophgo_backend.cc for FP16 data type (#2161)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaoII committed Aug 16, 2023
1 parent 4e9bcc3 commit 771dcf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastdeploy/runtime/backends/sophgo/sophgo_backend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 771dcf4

Please sign in to comment.