Skip to content

Commit 989772c

Browse files
committed
fix compiling error
1 parent 9a0093b commit 989772c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ constexpr const bool kQnnSupportedOps[] = {
101101
false, // GGML_OP_TRANSPOSE
102102
false, // GGML_OP_GET_ROWS
103103
false, // GGML_OP_GET_ROWS_BACK
104+
false, // GGML_OP_SET_ROWS
104105
false, // GGML_OP_DIAG
105106
false, // GGML_OP_DIAG_MASK_INF
106107
false, // GGML_OP_DIAG_MASK_ZERO
@@ -119,6 +120,7 @@ constexpr const bool kQnnSupportedOps[] = {
119120
false, // GGML_OP_POOL_2D_BACK
120121
false, // GGML_OP_UPSCALE
121122
false, // GGML_OP_PAD
123+
false, // GGML_OP_ROLL
122124
false, // GGML_OP_PAD_REFLECT_1D
123125
false, // GGML_OP_ARANGE
124126
false, // GGML_OP_TIMESTEP_EMBEDDING
@@ -148,6 +150,7 @@ constexpr const bool kQnnSupportedOps[] = {
148150
false, // GGML_OP_CROSS_ENTROPY_LOSS
149151
false, // GGML_OP_CROSS_ENTROPY_LOSS_BACK
150152
false, // GGML_OP_OPT_STEP_ADAMW
153+
false, // GGML_OP_GLU
151154

152155
// ggml_unary_op
153156
false, // GGML_UNARY_OP_ABS

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ constexpr const qnn_op_caps_t kOpCaps[] = {
146146
{}, // GGML_OP_TRANSPOSE
147147
{}, // GGML_OP_GET_ROWS
148148
{}, // GGML_OP_GET_ROWS_BACK
149+
{}, // GGML_OP_SET_ROWS
149150
{}, // GGML_OP_DIAG
150151
{}, // GGML_OP_DIAG_MASK_INF
151152
{}, // GGML_OP_DIAG_MASK_ZERO
@@ -164,6 +165,7 @@ constexpr const qnn_op_caps_t kOpCaps[] = {
164165
{}, // GGML_OP_POOL_2D_BACK
165166
{}, // GGML_OP_UPSCALE
166167
{}, // GGML_OP_PAD
168+
{}, // GGML_OP_ROLL
167169
{}, // GGML_OP_PAD_REFLECT_1D
168170
{}, // GGML_OP_ARANGE
169171

@@ -194,6 +196,7 @@ constexpr const qnn_op_caps_t kOpCaps[] = {
194196
{}, // GGML_OP_CROSS_ENTROPY_LOSS
195197
{}, // GGML_OP_CROSS_ENTROPY_LOSS_BACK
196198
{}, // GGML_OP_OPT_STEP_ADAMW
199+
{}, // GGML_OP_GLU
197200

198201
// ggml_unary_op
199202
{}, // GGML_UNARY_OP_ABS
@@ -320,6 +323,7 @@ constexpr const op_constructor_t kOpConstructors[] = {
320323
nullptr, // GGML_OP_TRANSPOSE
321324
nullptr, // GGML_OP_GET_ROWS
322325
nullptr, // GGML_OP_GET_ROWS_BACK
326+
nullptr, // GGML_OP_SET_ROWS
323327
nullptr, // GGML_OP_DIAG
324328
nullptr, // GGML_OP_DIAG_MASK_INF
325329
nullptr, // GGML_OP_DIAG_MASK_ZERO
@@ -338,6 +342,7 @@ constexpr const op_constructor_t kOpConstructors[] = {
338342
nullptr, // GGML_OP_POOL_2D_BACK
339343
nullptr, // GGML_OP_UPSCALE
340344
nullptr, // GGML_OP_PAD
345+
nullptr, // GGML_OP_ROLL
341346
nullptr, // GGML_OP_PAD_REFLECT_1D
342347
nullptr, // GGML_OP_ARANGE
343348
nullptr, // GGML_OP_TIMESTEP_EMBEDDING
@@ -367,6 +372,7 @@ constexpr const op_constructor_t kOpConstructors[] = {
367372
nullptr, // GGML_OP_CROSS_ENTROPY_LOSS
368373
nullptr, // GGML_OP_CROSS_ENTROPY_LOSS_BACK
369374
nullptr, // GGML_OP_OPT_STEP_ADAMW
375+
nullptr, // GGML_OP_GLU
370376

371377
// ggml_unary_op
372378
nullptr, // GGML_UNARY_OP_ABS

0 commit comments

Comments
 (0)