Skip to content

Commit

Permalink
LP
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Oct 20, 2023
1 parent 9c240ea commit adede93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@ int NetPrivate::convert_layout(Mat& bottom_blob, const Layer* layer, const Optio
{
// clang-format off
// *INDENT-OFF*

#if NCNN_ARM82
if (opt.use_fp16_storage && cpu_support_arm_asimdhp() && layer->support_fp16_storage)
{
Expand All @@ -640,6 +641,7 @@ int NetPrivate::convert_layout(Mat& bottom_blob, const Layer* layer, const Optio
bottom_blob = bottom_blob_bf16;
}
#endif // NCNN_BF16

// *INDENT-ON*
// clang-format on
}
Expand Down Expand Up @@ -722,6 +724,7 @@ int NetPrivate::convert_layout(Mat& bottom_blob, const Layer* layer, const Optio
{
// clang-format off
// *INDENT-OFF*

#if NCNN_ARM82
if (opt.use_fp16_storage && cpu_support_arm_asimdhp() && !layer->support_fp16_storage)
{
Expand All @@ -748,6 +751,7 @@ int NetPrivate::convert_layout(Mat& bottom_blob, const Layer* layer, const Optio
bottom_blob = bottom_blob_fp32;
}
#endif // NCNN_BF16

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

0 comments on commit adede93

Please sign in to comment.