Skip to content

Commit d344fbe

Browse files
authored
Merge pull request #7 from Tencent/restyled/pull-1871
Restyled/pull 1871
2 parents 9e617ee + 66a46c9 commit d344fbe

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/layer/x86/convolution_x86.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ int Convolution_x86::forward(const Mat& bottom_blob, Mat& top_blob, const Option
632632
activation->forward_inplace(top_blob, opt);
633633
}
634634
}
635-
635+
636636
else if (kernel_w == 3 && kernel_h == 3 && dilation_w == 1 && dilation_h == 1 && stride_w == 1 && stride_h == 1)
637637
{
638638
if (opt.use_fp16_storage)

src/layer/x86/innerproduct_x86.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,8 @@ int InnerProduct_x86::forward_fp16(const Mat& bottom_blob, Mat& top_blob,
469469
w6 += 8;
470470
w7 += 8;
471471
}
472-
if (remain != 0){
472+
if (remain != 0)
473+
{
473474
unsigned short fp16_weights[8][8] = {{0}};
474475
float _m_f[8] = {0};
475476
int i = 0;
@@ -523,8 +524,6 @@ int InnerProduct_x86::forward_fp16(const Mat& bottom_blob, Mat& top_blob,
523524
__m256 _w7 = loadfp16(fp16_weights[7]);
524525
_sum7 = _mm256_fmadd_ps(_m, _w7, _sum7);
525526
}
526-
527-
528527
}
529528
__m256 _sums = HorizontalSums(_sum0, _sum1, _sum2, _sum3, _sum4, _sum5,
530529
_sum6, _sum7);
@@ -591,7 +590,8 @@ int InnerProduct_x86::forward_fp16(const Mat& bottom_blob, Mat& top_blob,
591590
w2 += 8;
592591
w3 += 8;
593592
}
594-
if (remain != 0){
593+
if (remain != 0)
594+
{
595595
unsigned short fp16_weights[4][8] = {{0}};
596596
float _m_f[8] = {0};
597597
int i = 0;
@@ -660,7 +660,8 @@ int InnerProduct_x86::forward_fp16(const Mat& bottom_blob, Mat& top_blob,
660660
m += 8;
661661
w += 8;
662662
}
663-
if (remain != 0){
663+
if (remain != 0)
664+
{
664665
unsigned short fp16_weights[8] = {0};
665666
float _m_f[8] = {0};
666667
int i = 0;
@@ -676,7 +677,6 @@ int InnerProduct_x86::forward_fp16(const Mat& bottom_blob, Mat& top_blob,
676677

677678
__m256 _w = loadfp16(fp16_weights);
678679
_sum = _mm256_fmadd_ps(_m, _w, _sum);
679-
680680
}
681681
}
682682

0 commit comments

Comments
 (0)