Spaces:
Running
Running
ggml : fix unknown status (llama/0)
Browse files
ggml.c
CHANGED
|
@@ -323,11 +323,12 @@ float ggml_table_f32_f16[1 << 16];
|
|
| 323 |
const char * ggml_status_to_string(enum ggml_status status) {
|
| 324 |
switch (status) {
|
| 325 |
case GGML_STATUS_ALLOC_FAILED: return "GGML status: error (failed to allocate memory)";
|
| 326 |
-
case GGML_STATUS_FAILED:
|
| 327 |
-
case GGML_STATUS_SUCCESS:
|
| 328 |
-
case GGML_STATUS_ABORTED:
|
| 329 |
-
default: GGML_ASSERT(false);
|
| 330 |
}
|
|
|
|
|
|
|
| 331 |
}
|
| 332 |
|
| 333 |
// note: do not use these inside ggml.c
|
|
|
|
| 323 |
const char * ggml_status_to_string(enum ggml_status status) {
|
| 324 |
switch (status) {
|
| 325 |
case GGML_STATUS_ALLOC_FAILED: return "GGML status: error (failed to allocate memory)";
|
| 326 |
+
case GGML_STATUS_FAILED: return "GGML status: error (operation failed)";
|
| 327 |
+
case GGML_STATUS_SUCCESS: return "GGML status: success";
|
| 328 |
+
case GGML_STATUS_ABORTED: return "GGML status: warning (operation aborted)";
|
|
|
|
| 329 |
}
|
| 330 |
+
|
| 331 |
+
return "GGML status: unknown";
|
| 332 |
}
|
| 333 |
|
| 334 |
// note: do not use these inside ggml.c
|