Skip to content

Commit 6fe7e07

Browse files
authored
fix ggml_vec_geglu_f16
1 parent 319c6cb commit 6fe7e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cpu/vec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ inline static void ggml_vec_geglu_f16(const int n, ggml_fp16_t * y, const ggml_f
945945
const uint16_t * i16 = (const uint16_t *) x;
946946
for (int i = 0; i < n; ++i) {
947947
float g = GGML_FP16_TO_FP32(x[i + n]);
948-
y[i] = ggml_table_gelu_f16[i16[i]] * g;
948+
y[i] = GGML_FP32_TO_FP16(GGML_FP16_TO_FP32(ggml_table_gelu_f16[i16[i]]) * g);
949949
}
950950
}
951951

0 commit comments

Comments
 (0)