File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4501,7 +4501,7 @@ static void ggml_compute_forward_set_rows_f32(
4501
4501
const int64_t i12 = i/(ne11*ne10);
4502
4502
const int64_t i11 = (i - i12*ne11*ne10)/ne10;
4503
4503
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);
4505
4505
4506
4506
GGML_ASSERT (i01 >= 0 && i01 < ne1);
4507
4507
Original file line number Diff line number Diff line change @@ -3408,7 +3408,7 @@ struct ggml_tensor * ggml_set_rows(
3408
3408
GGML_ASSERT (c -> ne [3 ] == 1 );
3409
3409
GGML_ASSERT (a -> type == GGML_TYPE_F16 );
3410
3410
GGML_ASSERT (b -> type == GGML_TYPE_F32 );
3411
- GGML_ASSERT (c -> type == GGML_TYPE_I32 );
3411
+ GGML_ASSERT (c -> type == GGML_TYPE_I64 );
3412
3412
3413
3413
struct ggml_tensor * result = ggml_view_tensor (ctx , a );
3414
3414
You can’t perform that action at this time.
0 commit comments