Skip to content

Commit a6281e3

Browse files
committed
oom
1 parent 7b56883 commit a6281e3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/layer/x86/quantize_bf16s.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: BSD-3-Clause
33

44
#if NCNN_RUNTIME_CPU && NCNN_AVX512BF16 && __AVX512F__ && !__AVX512BF16__
5-
void quantize_forward_bf16s_avx512bf16(const Mat& bottom_blob, Mat& top_blob, const Mat& scale_data, int scale_data_size, const Option& opt);
5+
int quantize_forward_bf16s_avx512bf16(const Mat& bottom_blob, Mat& top_blob, const Mat& scale_data, int scale_data_size, const Option& opt);
66
#endif
77

88
static void quantize_bf16(const unsigned short* ptr, signed char* s8ptr, const Mat& scale_data, int elemcount, int elempack)
@@ -250,8 +250,7 @@ static int quantize_forward_bf16s(const Mat& bottom_blob, Mat& top_blob, const M
250250
#if NCNN_RUNTIME_CPU && NCNN_AVX512BF16 && __AVX512F__ && !__AVX512BF16__
251251
if (ncnn::cpu_support_x86_avx512_bf16())
252252
{
253-
quantize_forward_bf16s_avx512bf16(bottom_blob, top_blob, scale_data, scale_data_size, opt);
254-
return 0;
253+
return quantize_forward_bf16s_avx512bf16(bottom_blob, top_blob, scale_data, scale_data_size, opt);
255254
}
256255
#endif
257256

src/layer/x86/quantize_x86_avx512bf16.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ namespace ncnn {
1919

2020
#include "quantize_bf16s.h"
2121

22-
void quantize_forward_bf16s_avx512bf16(const Mat& bottom_blob, Mat& top_blob, const Mat& scale_data, int scale_data_size, const Option& opt)
22+
int quantize_forward_bf16s_avx512bf16(const Mat& bottom_blob, Mat& top_blob, const Mat& scale_data, int scale_data_size, const Option& opt)
2323
{
24-
quantize_forward_bf16s(bottom_blob, top_blob, scale_data, scale_data_size, opt);
24+
return quantize_forward_bf16s(bottom_blob, top_blob, scale_data, scale_data_size, opt);
2525
}
2626

2727
} // namespace ncnn

0 commit comments

Comments
 (0)