From bf9823afa7522d6b3f7448e4349a0a21d79d34a1 Mon Sep 17 00:00:00 2001 From: Ed Addario Date: Mon, 17 Nov 2025 14:51:12 +0000 Subject: [PATCH] Minor refactoring --- tools/imatrix/imatrix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/imatrix/imatrix.cpp b/tools/imatrix/imatrix.cpp index 6ccfa67ee5..69beee8868 100644 --- a/tools/imatrix/imatrix.cpp +++ b/tools/imatrix/imatrix.cpp @@ -766,9 +766,9 @@ void IMatrixCollector::save_imatrix(int32_t n_chunk) const { // Compute per-tensor statistics (CosSim, L2 Dist, ECS) to store alongside sums std::vector tstats; tstats.reserve(m_stats.size()); - bool legacy = true; + bool legacy_tensor = true; for (const auto & kv : m_stats) { - if (!compute_vector_statistics(tstats, kv.first, kv.second, legacy)) { + if (!compute_vector_statistics(tstats, kv.first, kv.second, legacy_tensor)) { LOG_WRN("%s: tensor %s has no data - skipping\n", __func__, kv.first.c_str()); } }