Skip to content

Commit f7d7411

Browse files
hexagon: remove custom can_repeat function and use ggml_can_repeat
1 parent 3049de5 commit f7d7411

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

ggml/src/ggml-hexagon/ggml-hexagon.cpp

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,23 +1683,6 @@ static bool hex_supported_dims2(const struct ggml_tensor * x, const struct ggml_
16831683
return true;
16841684
}
16851685

1686-
static bool hex_can_repeat(const struct ggml_tensor * t0, const struct ggml_tensor * t1) {
1687-
if ((t1->ne[0] % t0->ne[0]) != 0) {
1688-
return false;
1689-
}
1690-
if ((t1->ne[1] % t0->ne[1]) != 0) {
1691-
return false;
1692-
}
1693-
if ((t1->ne[2] % t0->ne[2]) != 0) {
1694-
return false;
1695-
}
1696-
if ((t1->ne[3] % t0->ne[3]) != 0) {
1697-
return false;
1698-
}
1699-
1700-
return true;
1701-
}
1702-
17031686
static bool hex_supported_src0_type(ggml_type t) {
17041687
return t == GGML_TYPE_F32;
17051688
}
@@ -1879,7 +1862,7 @@ static bool ggml_hexagon_supported_binary(const struct ggml_hexagon_session * se
18791862
if (!hex_supported_dims2(src0, dst)) {
18801863
return false;
18811864
}
1882-
if (!hex_can_repeat(src1, src0)) {
1865+
if (!ggml_can_repeat(src1, src0)) {
18831866
return false;
18841867
}
18851868

0 commit comments

Comments
 (0)