mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-03 09:22:01 +00:00 
			
		
		
		
	imatrix : use the function name in more error messages
This commit is contained in:
		@@ -154,7 +154,7 @@ bool IMatrixCollector::collect_imatrix(struct ggml_tensor * t, bool ask, void *
 | 
			
		||||
            exit(1); //GGML_ABORT("fatal error");
 | 
			
		||||
        }
 | 
			
		||||
        else if (e.counts.size() != (size_t)n_as) {
 | 
			
		||||
            LOG_ERR("Oops: inconsistent expert count for %s (%d vs %d)\n", wname.c_str(), (int)e.counts.size(), (int)n_as);
 | 
			
		||||
            LOG_ERR("%s: inconsistent expert count for %s (%d vs %d)\n", __func__, wname.c_str(), (int)e.counts.size(), (int)n_as);
 | 
			
		||||
            exit(1); //GGML_ABORT("fatal error");
 | 
			
		||||
        }
 | 
			
		||||
        LOG_DBGV(2, "%s[%d]: %32s, %s, %5d x %5d, %d\n", __func__, m_last_chunk, wname.c_str(), ggml_op_name(t->op), (int)src1->ne[0], (int)src1->ne[2], (int)src1->type);
 | 
			
		||||
@@ -208,7 +208,7 @@ bool IMatrixCollector::collect_imatrix(struct ggml_tensor * t, bool ask, void *
 | 
			
		||||
            exit(1); //GGML_ABORT("fatal error");
 | 
			
		||||
        }
 | 
			
		||||
        else if (e.counts.size() != 1) {
 | 
			
		||||
            LOG_ERR("Oops: inconsistent expert count for %s (%d vs %d)\n", wname.c_str(), (int)e.counts.size(), 1);
 | 
			
		||||
            LOG_ERR("%s: inconsistent expert count for %s (%d vs %d)\n", __func__, wname.c_str(), (int)e.counts.size(), 1);
 | 
			
		||||
            exit(1); //GGML_ABORT("fatal error");
 | 
			
		||||
        }
 | 
			
		||||
        LOG_DBGV(2, "%s[%d]: %32s, %s, %5d x %5d, %d\n", __func__, m_last_chunk, wname.c_str(), ggml_op_name(t->op), (int)src1->ne[0], (int)src1->ne[1], (int)src1->type);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user