Skip to content

Commit 54811fc

Browse files
committed
ggml-cpu: fix typo
Signed-off-by: Aaron Teo <[email protected]>
1 parent 433d587 commit 54811fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cpu/ggml-cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3144,7 +3144,7 @@ void ggml_cpu_fp32_to_fp16(const float * x, ggml_fp16_t * y, int64_t n) {
31443144
#elif defined(__NNPA__)
31453145
for (; i + 3 < n; i += 4) {
31463146
float32x4_t v_x = vec_xl(0, (const float *)(x + i));
3147-
uint16x8_t v_xd = vec_convert_to_fp16(v_xh, 0);
3147+
uint16x8_t v_xd = vec_convert_to_fp16(v_x, 0);
31483148
vec_xst(v_xd, 0, (ggml_fp16_t *)(y + i));
31493149
}
31503150
#endif

0 commit comments

Comments
 (0)