summaryrefslogtreecommitdiff
path: root/ggml.h
diff options
context:
space:
mode:
authorPavol Rusnak <pavol@rusnak.io>2023-04-14 20:05:37 +0200
committerGitHub <noreply@github.com>2023-04-14 20:05:37 +0200
commitc56b7152690ca25cfd66b20210b3629e6c1e739b (patch)
tree98ce26a2d72c15f173e17e5ad594a5df3134a4df /ggml.h
parentf4d277ae17247ee51129ef1a9ff74d377cc90b1b (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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ggml.h b/ggml.h
index bdff0b4d..617298a9 100644
--- a/ggml.h
+++ b/ggml.h
@@ -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);