mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-20 21:23:06 +00:00
ggml : fix unknown status (llama/0)
This commit is contained in:
parent
ed76818700
commit
edd8b38a75
9
ggml.c
9
ggml.c
@ -323,11 +323,12 @@ float ggml_table_f32_f16[1 << 16];
|
|||||||
const char * ggml_status_to_string(enum ggml_status status) {
|
const char * ggml_status_to_string(enum ggml_status status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case GGML_STATUS_ALLOC_FAILED: return "GGML status: error (failed to allocate memory)";
|
case GGML_STATUS_ALLOC_FAILED: return "GGML status: error (failed to allocate memory)";
|
||||||
case GGML_STATUS_FAILED: return "GGML status: error (operation failed)";
|
case GGML_STATUS_FAILED: return "GGML status: error (operation failed)";
|
||||||
case GGML_STATUS_SUCCESS: return "GGML status: success";
|
case GGML_STATUS_SUCCESS: return "GGML status: success";
|
||||||
case GGML_STATUS_ABORTED: return "GGML status: warning (operation aborted)";
|
case GGML_STATUS_ABORTED: return "GGML status: warning (operation aborted)";
|
||||||
default: GGML_ASSERT(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return "GGML status: unknown";
|
||||||
}
|
}
|
||||||
|
|
||||||
// note: do not use these inside ggml.c
|
// note: do not use these inside ggml.c
|
||||||
|
Loading…
Reference in New Issue
Block a user