Skip to content

Commit ab522d7

Browse files
Reenable assertion for out of bounds get_rows
Signed-off-by: Alex-Brooks <[email protected]>
1 parent 5f69fdb commit ab522d7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8703,9 +8703,7 @@ static void ggml_compute_forward_get_rows_f32(
87038703
const int64_t i10 = (i - i12*ne11*ne10 - i11*ne10);
87048704
const int64_t i01 = *(int32_t *) ((char *) src1->data + i10*nb10 + i11*nb11 + i12*nb12);
87058705

8706-
// Copying this out for a bit while investigating due to issues like:
8707-
// https://github.com/ggerganov/llama.cpp/issues/10157
8708-
// GGML_ASSERT(i01 >= 0 && i01 < ne01);
8706+
GGML_ASSERT(i01 >= 0 && i01 < ne01);
87098707

87108708
ggml_vec_cpy_f32(nc,
87118709
(float *) ((char *) dst->data + i10*nb1 + i11*nb2 + i12*nb3),

0 commit comments

Comments
 (0)