diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2023-04-14 20:05:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 20:05:37 +0200 |
commit | c56b7152690ca25cfd66b20210b3629e6c1e739b (patch) | |
tree | 98ce26a2d72c15f173e17e5ad594a5df3134a4df /ggml.h | |
parent | f4d277ae17247ee51129ef1a9ff74d377cc90b1b (diff) |
Expose type name from ggml (#970)
Avoid duplication of type names in utils
Co-authored-by: HÃ¥kon H. Hitland <haakon@likedan.net>
Diffstat (limited to 'ggml.h')
-rw-r--r-- | ggml.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -354,6 +354,8 @@ int ggml_blck_size (enum ggml_type type); size_t ggml_type_size (enum ggml_type type); // size in bytes for all elements in a block float ggml_type_sizef(enum ggml_type type); // ggml_type_size()/ggml_blck_size() as float +const char * ggml_type_name(enum ggml_type type); + size_t ggml_element_size(const struct ggml_tensor * tensor); struct ggml_context * ggml_init(struct ggml_init_params params); |