Skip to content

Commit 2306f82

Browse files
committed
fix compiling error
1 parent 54b3021 commit 2306f82

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ggml/src/ggml-qnn/qnn/backend-ops.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ constexpr const bool kQnnSupportedOps[] = {
164164
false, // GGML_UNARY_OP_HARDSWISH
165165
false, // GGML_UNARY_OP_HARDSIGMOID
166166
false, // GGML_UNARY_OP_EXP
167+
false, // GGML_UNARY_OP_GELU_ERF
167168
};
168169

169170
static_assert(kQnnSupportedOps[GGML_OP_NONE], "GGML_OP_NONE is not true");

ggml/src/ggml-qnn/qnn/op-config-caps.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ constexpr const qnn_op_caps_t kOpCaps[] = {
213213
{}, // GGML_UNARY_OP_HARDSWISH
214214
{}, // GGML_UNARY_OP_HARDSIGMOID
215215
{}, // GGML_UNARY_OP_EXP
216+
{}, // GGML_UNARY_OP_GELU_ERF
216217
};
217218

218219
static_assert(kOpCaps[GGML_OP_NONE].get_desc == nullptr, "GGML_OP_NONE should not have get_desc function");
@@ -382,6 +383,7 @@ constexpr const op_constructor_t kOpConstructors[] = {
382383
nullptr, // GGML_UNARY_OP_HARDSWISH
383384
nullptr, // GGML_UNARY_OP_HARDSIGMOID
384385
nullptr, // GGML_UNARY_OP_EXP
386+
nullptr, // GGML_UNARY_OP_GELU_ERF
385387
};
386388

387389
static_assert(kOpConstructors[GGML_OP_NONE] == nullptr, "GGML_OP_NONE does not match the nullptr function");

0 commit comments

Comments
 (0)