Merge branch 'pr_fix_buf_resize_type' into concedo_experimental
This commit is contained in:
commit
53bbd1ee43
2 changed files with 3 additions and 3 deletions
4
ggml.c
4
ggml.c
|
@ -2011,8 +2011,8 @@ size_t ggml_type_size(enum ggml_type type) {
|
||||||
return type_traits[type].type_size;
|
return type_traits[type].type_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
float ggml_type_sizef(enum ggml_type type) {
|
double ggml_type_sizef(enum ggml_type type) {
|
||||||
return ((float)(type_traits[type].type_size))/type_traits[type].blck_size;
|
return ((double)(type_traits[type].type_size))/type_traits[type].blck_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char * ggml_type_name(enum ggml_type type) {
|
const char * ggml_type_name(enum ggml_type type) {
|
||||||
|
|
2
ggml.h
2
ggml.h
|
@ -650,7 +650,7 @@ extern "C" {
|
||||||
|
|
||||||
GGML_API int ggml_blck_size (enum ggml_type type);
|
GGML_API int ggml_blck_size (enum ggml_type type);
|
||||||
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_type_size (enum ggml_type type); // size in bytes for all elements in a block
|
||||||
GGML_API float ggml_type_sizef(enum ggml_type type); // ggml_type_size()/ggml_blck_size() as float
|
GGML_API double ggml_type_sizef(enum ggml_type type); // ggml_type_size()/ggml_blck_size() as float
|
||||||
|
|
||||||
GGML_API const char * ggml_type_name(enum ggml_type type);
|
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_name (enum ggml_op op);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue