summaryrefslogtreecommitdiff
path: root/ggml.h
diff options
context:
space:
mode:
authorslaren <slarengh@gmail.com>2023-08-20 22:17:53 +0200
committerGitHub <noreply@github.com>2023-08-20 22:17:53 +0200
commit9e232f0234073358e7031c1b8d7aa45020469a3b (patch)
tree4066e662e2d8fceb7432099c11aad23008295c0a /ggml.h
parent5e9ff54a675d163d9f42aad1b5b3e734f17b2701 (diff)
ggml : move all type info to ggml_type_traits (#2663)
Diffstat (limited to 'ggml.h')
-rw-r--r--ggml.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ggml.h b/ggml.h
index bdbd1280..3a946dbd 100644
--- a/ggml.h
+++ b/ggml.h
@@ -1740,6 +1740,10 @@ extern "C" {
typedef void (*ggml_vec_dot_t) (const int n, float * GGML_RESTRICT s, const void * GGML_RESTRICT x, const void * GGML_RESTRICT y);
typedef struct {
+ const char * type_name;
+ int blck_size;
+ size_t type_size;
+ bool is_quantized;
ggml_to_float_t to_float;
ggml_from_float_t from_float;
ggml_from_float_t from_float_reference;
@@ -1747,7 +1751,7 @@ extern "C" {
enum ggml_type vec_dot_type;
} ggml_type_traits_t;
- ggml_type_traits_t ggml_internal_get_type_traits(enum ggml_type i);
+ ggml_type_traits_t ggml_internal_get_type_traits(enum ggml_type type);
#ifdef __cplusplus
}