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 3d404b4 commit 1aafb78Copy full SHA for 1aafb78
ggml/src/ggml-cann/ggml-cann.cpp
@@ -2257,9 +2257,8 @@ static bool ggml_graph_node_has_matching_properties(
2257
}
2258
2259
2260
- if (node->op == GGML_OP_SCALE &&
2261
- memcmp(graph_node_properties->op_params, node->op_params, GGML_MAX_OP_PARAMS) != 0) {
2262
- return false;
+ if (node->op == GGML_OP_SCALE || node->op == GGML_OP_UNARY || node->op == GGML_OP_GLU) {
+ return memcmp(graph_node_properties->op_params, node->op_params, GGML_MAX_OP_PARAMS) == 0;
2263
2264
return true;
2265
0 commit comments