We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 305dc66 commit 0a982a4Copy full SHA for 0a982a4
ggml/src/ggml-cpu/ggml-cpu.c
@@ -3982,6 +3982,11 @@ static void ggml_compute_forward_dup_q(
3982
size_t qk = ggml_blck_size(type);
3983
const int64_t nr = ggml_nelements(src1) / qk;
3984
3985
+ // destination must be contiguous in the first dimension
3986
+ GGML_ASSERT(nb10 == ggml_type_size(dst->type));
3987
+ // must either have first dimension large enough to hold a row, or fully contiguous
3988
+ GGML_ASSERT((ne10 % qk) == 0 || ggml_is_contiguous(dst));
3989
+
3990
const int ith = params->ith;
3991
const int nth = params->nth;
3992
0 commit comments