Skip to content

Commit

Permalink
fix bias error in conv1x1s1 sgemm pack8to4 fp16sa, fix #2880
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed May 6, 2021
1 parent e34edfb commit 7a1e015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layer/arm/convolution_1x1_pack8to4_fp16s.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ static void conv1x1s1_sgemm_pack8to4_fp16sa_neon(const Mat& bottom_blob, Mat& to
__fp16* outptr1 = top_blob.channel(p + 1);

const __fp16 zeros[8] = {0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f};
const __fp16* biasptr = bias ? bias + p : zeros;
const __fp16* biasptr = bias ? bias + p * 4 : zeros;
float16x8_t _bias0 = vld1q_f16(biasptr);

int i = 0;
Expand Down

0 comments on commit 7a1e015

Please sign in to comment.