Skip to content

Commit

Permalink
clear out all non-normals on load
Browse files Browse the repository at this point in the history
  • Loading branch information
CISC authored Jun 13, 2024
1 parent fe21ef7 commit 4c29bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/imatrix/imatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ bool IMatrixCollector::load_imatrix(const char * fname) {

// Recreate the state as expected by save_imatrix(), and corerct for weighted sum.
for (int i = 0; i < nval; i++) {
if (tmp[i]) {
if (std::isnormal(tmp[i])) {
e.values[i] += tmp[i];
e.counts[i] += ncall;
}
Expand Down

0 comments on commit 4c29bb0

Please sign in to comment.