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 afce6fa commit 7bc4d22Copy full SHA for 7bc4d22
ggml-metal.m
@@ -1193,7 +1193,9 @@ void ggml_metal_graph_compute(
1193
const float scale = ((float *) dst->op_params)[0];
1194
1195
[encoder setBuffer:id_src0 offset:offs_src0 atIndex:0];
1196
- [encoder setBuffer:id_src1 offset:offs_src1 atIndex:1];
+ if (id_src1) {
1197
+ [encoder setBuffer:id_src1 offset:offs_src1 atIndex:1];
1198
+ }
1199
[encoder setBuffer:id_dst offset:offs_dst atIndex:2];
1200
[encoder setBytes:&ne00 length:sizeof(ne00) atIndex:3];
1201
[encoder setBytes:&ne01 length:sizeof(ne01) atIndex:4];
0 commit comments