summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2024-04-12 11:49:58 +0300
committerGitHub <noreply@github.com>2024-04-12 11:49:58 +0300
commitef21ce4ccb41164cb52997bd2210d92bc6a6c5d1 (patch)
treecb7a794c92f511e6c6794d23bf9a665f0b0c87ed /examples
parentdee7f8d6928cc680cc969f7d93f98c3e24dcad41 (diff)
imatrix : remove invalid assert (#6632)
Diffstat (limited to 'examples')
-rw-r--r--examples/imatrix/imatrix.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/imatrix/imatrix.cpp b/examples/imatrix/imatrix.cpp
index ff624c53..73609d3e 100644
--- a/examples/imatrix/imatrix.cpp
+++ b/examples/imatrix/imatrix.cpp
@@ -107,9 +107,7 @@ bool IMatrixCollector::collect_imatrix(struct ggml_tensor * t, bool ask, void *
// the top-k selected expert ids are stored in the ids tensor
// for simplicity, always copy ids to host, because it is small
- // take into account that ids is not contiguous!
GGML_ASSERT(ids->ne[1] == src1->ne[1]);
- GGML_ASSERT(n_as*ggml_nrows(ids)*sizeof(int) == GGML_PAD(ggml_nbytes(ids), n_as*sizeof(int)));
m_ids.resize(ggml_nbytes(ids)/sizeof(int));
ggml_backend_tensor_get(ids, m_ids.data(), 0, ggml_nbytes(ids));