Skip to content

Commit 70e3d27

Browse files
committed
use I64 for indices
1 parent 990ee1b commit 70e3d27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ggml/src/ggml-cpu/ops.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4501,7 +4501,7 @@ static void ggml_compute_forward_set_rows_f32(
45014501
const int64_t i12 = i/(ne11*ne10);
45024502
const int64_t i11 = (i - i12*ne11*ne10)/ne10;
45034503
const int64_t i10 = (i - i12*ne11*ne10 - i11*ne10);
4504-
const int64_t i01 = *(int32_t *) ((char *) src1->data + i10*nb10 + i11*nb11 + i12*nb12);
4504+
const int64_t i01 = *(int64_t *) ((char *) src1->data + i10*nb10 + i11*nb11 + i12*nb12);
45054505

45064506
GGML_ASSERT(i01 >= 0 && i01 < ne1);
45074507

ggml/src/ggml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3408,7 +3408,7 @@ struct ggml_tensor * ggml_set_rows(
34083408
GGML_ASSERT(c->ne[3] == 1);
34093409
GGML_ASSERT(a->type == GGML_TYPE_F16);
34103410
GGML_ASSERT(b->type == GGML_TYPE_F32);
3411-
GGML_ASSERT(c->type == GGML_TYPE_I32);
3411+
GGML_ASSERT(c->type == GGML_TYPE_I64);
34123412

34133413
struct ggml_tensor * result = ggml_view_tensor(ctx, a);
34143414

0 commit comments

Comments
 (0)