File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -323,11 +323,12 @@ float ggml_table_f32_f16[1 << 16];
323323const char * ggml_status_to_string(enum ggml_status status) {
324324    switch (status) {
325325        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-         default: GGML_ASSERT(false);
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)";
330329    }
330+ 
331+     return "GGML status: unknown";
331332}
332333
333334// note: do not use these inside ggml.c
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments