Skip to content

Commit ef21ce4

Browse files
authored
imatrix : remove invalid assert (ggml-org#6632)
1 parent dee7f8d commit ef21ce4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

examples/imatrix/imatrix.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ bool IMatrixCollector::collect_imatrix(struct ggml_tensor * t, bool ask, void *
107107

108108
// the top-k selected expert ids are stored in the ids tensor
109109
// for simplicity, always copy ids to host, because it is small
110-
// take into account that ids is not contiguous!
111110
GGML_ASSERT(ids->ne[1] == src1->ne[1]);
112-
GGML_ASSERT(n_as*ggml_nrows(ids)*sizeof(int) == GGML_PAD(ggml_nbytes(ids), n_as*sizeof(int)));
113111
m_ids.resize(ggml_nbytes(ids)/sizeof(int));
114112
ggml_backend_tensor_get(ids, m_ids.data(), 0, ggml_nbytes(ids));
115113

0 commit comments

Comments
 (0)