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 06dfde3 commit 7e2006bCopy full SHA for 7e2006b
ggml-metal.m
@@ -1003,14 +1003,13 @@ void ggml_metal_graph_compute(
1003
case GGML_OP_MUL:
1004
case GGML_OP_DIV:
1005
{
1006
- GGML_ASSERT(ggml_is_contiguous(src0));
1007
- GGML_ASSERT(ggml_is_contiguous(src1));
1008
-
1009
bool bcast_row = false;
1010
1011
int64_t nb = ne00;
1012
1013
- if (ggml_nelements(src1) == ne10 && ne00 % 4 == 0) {
+ if (ggml_nelements(src1) == ne10 && ggml_is_contiguous(src1) && ne00 % 4 == 0) {
+ GGML_ASSERT(ggml_is_contiguous(src0));
+
1014
// src1 is a row
1015
GGML_ASSERT(ne11 == 1);
1016
0 commit comments