diff options
author | slaren <slarengh@gmail.com> | 2023-08-20 22:17:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-20 22:17:53 +0200 |
commit | 9e232f0234073358e7031c1b8d7aa45020469a3b (patch) | |
tree | 4066e662e2d8fceb7432099c11aad23008295c0a /ggml.h | |
parent | 5e9ff54a675d163d9f42aad1b5b3e734f17b2701 (diff) |
ggml : move all type info to ggml_type_traits (#2663)
Diffstat (limited to 'ggml.h')
-rw-r--r-- | ggml.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 } |