Skip to content

Commit 34715fb

Browse files
Apply suggestions from code review
Co-authored-by: Georgi Gerganov <[email protected]>
1 parent 4ee7a17 commit 34715fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ggml-quants.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4590,18 +4590,18 @@ void ggml_vec_dot_q8_0_q8_0(int n, float * restrict s, size_t bs, const void * r
45904590

45914591
#if defined(__ARM_FEATURE_MATMUL_INT8)
45924592
if (nrc == 2) {
4593-
const block_q4_0 * restrict vx0 = vx;
4594-
const block_q4_0 * restrict vx1 = (const block_q4_0 *) ((const uint8_t*)vx + bx);
4593+
const block_q8_0 * restrict vx0 = vx;
4594+
const block_q8_0 * restrict vx1 = (const block_q8_0 *) ((const uint8_t*)vx + bx);
45954595
const block_q8_0 * restrict vy0 = vy;
45964596
const block_q8_0 * restrict vy1 = (const block_q8_0 *) ((const uint8_t*)vy + by);
45974597

45984598
float32x4_t sumv0 = vdupq_n_f32(0.0f);
45994599

46004600
for (int i = 0; i < nb; i++) {
4601-
const block_q4_0 * restrict b_x0 = &vx0[i];
4601+
const block_q8_0 * restrict b_x0 = &vx0[i];
46024602
const block_q8_0 * restrict b_y0 = &vy0[i];
46034603

4604-
const block_q4_0 * restrict b_x1 = &vx1[i];
4604+
const block_q8_0 * restrict b_x1 = &vx1[i];
46054605
const block_q8_0 * restrict b_y1 = &vy1[i];
46064606

46074607
const int8x16_t x0_l = vld1q_s8((const int8_t*)b_x0->qs);

0 commit comments

Comments
 (0)