Skip to content

Commit

Permalink
ggml : fix unknown status (llama/0)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Mar 8, 2024
1 parent ed76818 commit edd8b38
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,12 @@ float ggml_table_f32_f16[1 << 16];
const char * ggml_status_to_string(enum ggml_status status) {
switch (status) {
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_SUCCESS: return "GGML status: success";
case GGML_STATUS_ABORTED: return "GGML status: warning (operation aborted)";
default: GGML_ASSERT(false);
case GGML_STATUS_FAILED: return "GGML status: error (operation failed)";
case GGML_STATUS_SUCCESS: return "GGML status: success";
case GGML_STATUS_ABORTED: return "GGML status: warning (operation aborted)";
}

return "GGML status: unknown";
}

// note: do not use these inside ggml.c
Expand Down

0 comments on commit edd8b38

Please sign in to comment.