From 45250db0f871089dcaa36c891009ff24b6c0f52f Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 22 Feb 2026 16:23:57 +0200 Subject: [PATCH] ggml : remove deprecated ggml_type_sizef() --- ggml/include/ggml.h | 4 ---- ggml/src/ggml.c | 7 ------- 2 files changed, 11 deletions(-) diff --git a/ggml/include/ggml.h b/ggml/include/ggml.h index 77af0e7fb6..fcc51f1f71 100644 --- a/ggml/include/ggml.h +++ b/ggml/include/ggml.h @@ -730,10 +730,6 @@ extern "C" { GGML_API size_t ggml_type_size(enum ggml_type type); // size in bytes for all elements in a block GGML_API size_t ggml_row_size (enum ggml_type type, int64_t ne); // size in bytes for all elements in a row - GGML_DEPRECATED( - GGML_API double ggml_type_sizef(enum ggml_type type), // ggml_type_size()/ggml_blck_size() as float - "use ggml_row_size() instead"); - GGML_API const char * ggml_type_name(enum ggml_type type); GGML_API const char * ggml_op_name (enum ggml_op op); GGML_API const char * ggml_op_symbol(enum ggml_op op); diff --git a/ggml/src/ggml.c b/ggml/src/ggml.c index 8c23158310..dbd30f7bab 100644 --- a/ggml/src/ggml.c +++ b/ggml/src/ggml.c @@ -1282,13 +1282,6 @@ size_t ggml_row_size(enum ggml_type type, int64_t ne) { return ggml_type_size(type)*ne/ggml_blck_size(type); } -double ggml_type_sizef(enum ggml_type type) { - if (type < 0 || type >= GGML_TYPE_COUNT) { - return 0.0; - } - return ((double)(type_traits[type].type_size))/type_traits[type].blck_size; -} - const char * ggml_type_name(enum ggml_type type) { return type >= 0 && type < GGML_TYPE_COUNT ? type_traits[type].type_name : "NONE"; }