Skip to content

Commit a021171

Browse files
committed
fix compiling error after merge
1 parent 3eaeb91 commit a021171

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ constexpr const bool kQnnSupportedOps[] = {
174174
false, // GGML_UNARY_OP_EXP
175175
false, // GGML_UNARY_OP_GELU_ERF
176176
false, // GGML_UNARY_OP_XIELU
177+
false, // GGML_UNARY_OP_FLOOR
178+
false, // GGML_UNARY_OP_CEIL
179+
false, // GGML_UNARY_OP_ROUND
180+
false, // GGML_UNARY_OP_TRUNC
177181
};
178182

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

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ constexpr const qnn_op_caps_t kOpCaps[] = {
228228
{}, // GGML_UNARY_OP_EXP
229229
{}, // GGML_UNARY_OP_GELU_ERF
230230
{}, // GGML_UNARY_OP_XIELU
231+
{}, // GGML_UNARY_OP_FLOOR
232+
{}, // GGML_UNARY_OP_CEIL
233+
{}, // GGML_UNARY_OP_ROUND
234+
{}, // GGML_UNARY_OP_TRUNC
231235
};
232236

233237
static_assert(kOpCaps[GGML_OP_NONE].get_desc == nullptr, "GGML_OP_NONE should not have get_desc function");
@@ -407,6 +411,10 @@ constexpr const op_constructor_t kOpConstructors[] = {
407411
nullptr, // GGML_UNARY_OP_EXP
408412
nullptr, // GGML_UNARY_OP_GELU_ERF
409413
nullptr, // GGML_UNARY_OP_XIELU
414+
nullptr, // GGML_UNARY_OP_FLOOR
415+
nullptr, // GGML_UNARY_OP_CEIL
416+
nullptr, // GGML_UNARY_OP_ROUND
417+
nullptr, // GGML_UNARY_OP_TRUNC
410418
};
411419

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

0 commit comments

Comments
 (0)