Skip to content

Commit 096b847

Browse files
fix wrong type in print
1 parent b887270 commit 096b847

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ggml/src/ggml.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6779,8 +6779,8 @@ struct gguf_context * gguf_init_from_file(const char * fname, struct gguf_init_p
67796779
ok = false;
67806780
break;
67816781
}
6782-
const size_t type_size = ggml_type_size(info->t.type);
6783-
const size_t blck_size = ggml_blck_size(info->t.type);
6782+
const size_t type_size = ggml_type_size(info->t.type);
6783+
const int64_t blck_size = ggml_blck_size(info->t.type);
67846784

67856785
// check that row size is divisible by block size
67866786
if (blck_size == 0 || info->t.ne[0] % blck_size != 0) {
@@ -7350,8 +7350,8 @@ void gguf_set_tensor_type(struct gguf_context * ctx, const char * name, enum ggm
73507350
GGML_ABORT("tensor not found");
73517351
}
73527352
struct ggml_tensor * tensor = &ctx->info[idx].t;
7353-
const size_t type_size = ggml_type_size(type);
7354-
const int blck_size = ggml_blck_size(type);
7353+
const size_t type_size = ggml_type_size(type);
7354+
const int64_t blck_size = ggml_blck_size(type);
73557355

73567356
tensor->type = type;
73577357
GGML_ASSERT(tensor->ne[0] % blck_size == 0 && "tensor row size not divisible by block size of new type");

0 commit comments

Comments
 (0)