Skip to content

Commit e3149a2

Browse files
EAddariocompilade
andauthored
Use the corresponding size
Co-authored-by: compilade <[email protected]>
1 parent d4b0d89 commit e3149a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/imatrix/imatrix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ void IMatrixCollector::save_imatrix(int32_t n_chunk) const {
761761
const int32_t nact = (int32_t) stat.activations.size();
762762
struct ggml_tensor * in_sum = ggml_new_tensor_2d(ctx, GGML_TYPE_F32, nact / nmat, nmat);
763763
ggml_format_name(in_sum, "%s.in_sum", name.c_str());
764-
for (int32_t j = 0; j < nval; ++j) {
764+
for (int32_t j = 0; j < nact; ++j) {
765765
((float *) in_sum->data)[j] = (float) stat.activations[j];
766766
}
767767
gguf_add_tensor(ctx_gguf, in_sum);

0 commit comments

Comments
 (0)