Skip to content

Commit a91e779

Browse files
zhaixuejun1993wine99
authored andcommitted
OpenVINO backend: fix accurace issue in gemma3n arch test
1 parent 2ede174 commit a91e779

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

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

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -932,29 +932,6 @@ static bool is_op_unsupported_case(const ggml_tensor * op) {
932932
}
933933
break;
934934
}
935-
case GGML_OP_DIV: {
936-
bool requires_broadcast = false;
937-
for (int i = 0; i < 4; i++) {
938-
if (op->src[0]->ne[i] == op->src[1]->ne[i]) {
939-
continue;
940-
}
941-
942-
if (op->src[0]->ne[i] != 1 && op->src[1]->ne[i] != 1) {
943-
return true;
944-
}
945-
946-
requires_broadcast = true;
947-
}
948-
949-
// The GPU plugin can fuse broadcast DIV into the preceding FFN GEMM path
950-
// and produce infs for per-channel scale vectors. Keep those DIVs on CPU
951-
// until the fused GPU kernel is reliable. (falied case llama-arch-test mpt)
952-
if (requires_broadcast && ggml_openvino_get_device_name() == "GPU") {
953-
return true;
954-
}
955-
956-
break;
957-
}
958935
case GGML_OP_SUM_ROWS: {
959936
// if the input is PERMUTE skip
960937
if (op->src[0]->op == GGML_OP_PERMUTE) {

0 commit comments

Comments
 (0)