Skip to content

Commit

Permalink
fix arm riscv build with NCNN_BF16=OFF (#5422)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored Apr 11, 2024
1 parent 110d2ba commit 0fd25d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,10 @@ int NetPrivate::convert_layout(Mat& bottom_blob, const Layer* layer, const Optio
cast_float32_to_bfloat16(bottom_blob, bottom_blob_bf16, opt);
bottom_blob = bottom_blob_bf16;
}
else
#endif // NCNN_BF16
{
}

// *INDENT-ON*
// clang-format on
Expand Down Expand Up @@ -756,7 +759,10 @@ int NetPrivate::convert_layout(Mat& bottom_blob, const Layer* layer, const Optio
cast_bfloat16_to_float32(bottom_blob, bottom_blob_fp32, opt);
bottom_blob = bottom_blob_fp32;
}
else
#endif // NCNN_BF16
{
}

// *INDENT-ON*
// clang-format on
Expand Down

0 comments on commit 0fd25d6

Please sign in to comment.