diff --git a/tools/imatrix/imatrix.cpp b/tools/imatrix/imatrix.cpp index 1900c37ac6..1edc39835c 100644 --- a/tools/imatrix/imatrix.cpp +++ b/tools/imatrix/imatrix.cpp @@ -150,7 +150,7 @@ static std::vector compute_tensor_averages(const Stats & tstats) { } else { // Mean for (size_t m = 0; m < n_mat; ++m) { - const float c = (float) tstats.counts[m]; + const float c = (float)tstats.counts[m]; const size_t off = m * row; if (c <= 0.0f) { vec.insert(vec.end(), row, 0.0f); // zero-fill rows for experts with zero count to preserve shape