Skip to content

Commit 214838e

Browse files
committed
Skip permuted ADD and MUL
1 parent 21b796b commit 214838e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ggml/src/ggml-openvino/ggml-openvino.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,9 @@ static bool is_op_unsupported_case(const ggml_tensor * op) {
798798
}
799799
case GGML_OP_ADD:
800800
case GGML_OP_MUL: {
801+
if (op->src[1]->op == GGML_OP_PERMUTE) {
802+
return true;
803+
}
801804
for (int i = 0; i < 4; i++) {
802805
if (op->src[0]->ne[i] != op->src[1]->ne[i] && (op->src[0]->ne[i] != 1 && op->src[1]->ne[i] != 1)) {
803806
return true;

0 commit comments

Comments
 (0)