mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-04-30 19:31:48 +00:00
Fix typo in non-AVX2 code branch (#445)
Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
This commit is contained in:
@@ -779,7 +779,7 @@ static void analyze_x(const char * name, int nrows, int n_per_row, const float *
|
|||||||
auto qv = codes.data() + kBlockSize*j;
|
auto qv = codes.data() + kBlockSize*j;
|
||||||
float sumqx = 0;
|
float sumqx = 0;
|
||||||
for (int k = 0; k < kBlockSize; ++k) sumqx += qv[k]*xb[k];
|
for (int k = 0; k < kBlockSize; ++k) sumqx += qv[k]*xb[k];
|
||||||
if (sumqx*sumqx*sumq2i[j] > best]) {
|
if (sumqx*sumqx*sumq2i[j] > best) {
|
||||||
d = sumqx*sumq2i[j]; best = d*sumqx; jbest = j;
|
d = sumqx*sumq2i[j]; best = d*sumqx; jbest = j;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user