Unconditionally increment ncall
Co-authored-by: slaren <slarengh@gmail.com>
This commit is contained in:
parent
5e98f44e2f
commit
c6d2bbbb17
1 changed files with 1 additions and 4 deletions
|
@ -121,10 +121,7 @@ bool IMatrixCollector::collect_imatrix(struct ggml_tensor * t, bool ask, void *
|
|||
|
||||
auto & e = m_stats[wname];
|
||||
|
||||
// We select top-k experts, the number of calls for the expert tensors will be k times larger.
|
||||
// NOTE: This will trigger the "if (e.ncall > m_last_call)" save conditional on the first active expert.
|
||||
// The commented out "if (idx == t->src[0]->ne[0] - 1) ++e.ncall;" doesn't work.
|
||||
if (((int32_t *) t->op_params)[0] == 0) ++e.ncall;
|
||||
++e.ncall;
|
||||
|
||||
if (e.values.empty()) {
|
||||
e.values.resize(src1->ne[0]*n_as, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue