File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -256,8 +256,6 @@ static std::vector<int> ggml_metal_graph_optimize_reorder(const std::vector<node
256
256
257
257
// perform reorders only across these types of ops
258
258
// can be expanded when needed
259
- // IMPORTANT: do not add ops such as GGML_OP_CPY or GGML_OP_SET_ROWS
260
- // the dependencies from such ops are not always represented in the graph
261
259
const auto & h_safe = [](ggml_op op) {
262
260
switch (op) {
263
261
case GGML_OP_MUL_MAT:
@@ -273,6 +271,8 @@ static std::vector<int> ggml_metal_graph_optimize_reorder(const std::vector<node
273
271
case GGML_OP_GLU:
274
272
case GGML_OP_SCALE:
275
273
case GGML_OP_GET_ROWS:
274
+ case GGML_OP_CPY:
275
+ case GGML_OP_SET_ROWS:
276
276
return true ;
277
277
default :
278
278
return ggml_op_is_empty (op);
You can’t perform that action at this time.
0 commit comments