mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-02-10 15:32:23 +01:00
ggml : ggml_type_name return "NONE" for invalid values (llama/9458)
When running on Windows, the quantization utility attempts to print the types that are not set which leads to a crash.
This commit is contained in:
parent
66b00fad0d
commit
4f4687cb74
@ -3384,7 +3384,7 @@ double ggml_type_sizef(enum ggml_type type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
GGML_CALL const char * ggml_type_name(enum ggml_type type) {
|
GGML_CALL const char * ggml_type_name(enum ggml_type type) {
|
||||||
return type_traits[type].type_name;
|
return type < GGML_TYPE_COUNT ? type_traits[type].type_name : "NONE";
|
||||||
}
|
}
|
||||||
|
|
||||||
GGML_CALL bool ggml_is_quantized(enum ggml_type type) {
|
GGML_CALL bool ggml_is_quantized(enum ggml_type type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user