From 0979133ea89b05d72ba3cb0cb0f066fa041ab50e Mon Sep 17 00:00:00 2001 From: chraac Date: Mon, 25 Aug 2025 12:32:58 +0800 Subject: [PATCH] fix compiling error --- ggml/src/ggml-qnn/qnn/backend-ops.cpp | 2 ++ ggml/src/ggml-qnn/qnn/op-config-caps.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ggml/src/ggml-qnn/qnn/backend-ops.cpp b/ggml/src/ggml-qnn/qnn/backend-ops.cpp index a90d802433..189f3afb90 100644 --- a/ggml/src/ggml-qnn/qnn/backend-ops.cpp +++ b/ggml/src/ggml-qnn/qnn/backend-ops.cpp @@ -121,6 +121,7 @@ constexpr const bool kQnnSupportedOps[] = { false, // GGML_OP_IM2COL false, // GGML_OP_IM2COL_BACK false, // GGML_OP_CONV_2D + false, // GGML_OP_CONV_3D false, // GGML_OP_CONV_2D_DW false, // GGML_OP_CONV_TRANSPOSE_2D false, // GGML_OP_POOL_1D @@ -158,6 +159,7 @@ constexpr const bool kQnnSupportedOps[] = { false, // GGML_OP_CROSS_ENTROPY_LOSS false, // GGML_OP_CROSS_ENTROPY_LOSS_BACK false, // GGML_OP_OPT_STEP_ADAMW + false, // GGML_OP_OPT_STEP_SGD false, // GGML_OP_GLU // ggml_unary_op diff --git a/ggml/src/ggml-qnn/qnn/op-config-caps.cpp b/ggml/src/ggml-qnn/qnn/op-config-caps.cpp index 214dd4efed..5a05c022f8 100644 --- a/ggml/src/ggml-qnn/qnn/op-config-caps.cpp +++ b/ggml/src/ggml-qnn/qnn/op-config-caps.cpp @@ -176,6 +176,7 @@ constexpr const qnn_op_caps_t kOpCaps[] = { {}, // GGML_OP_IM2COL {}, // GGML_OP_IM2COL_BACK {}, // GGML_OP_CONV_2D + {}, // GGML_OP_CONV_3D {}, // GGML_OP_CONV_2D_DW {}, // GGML_OP_CONV_TRANSPOSE_2D {}, // GGML_OP_POOL_1D @@ -214,6 +215,7 @@ constexpr const qnn_op_caps_t kOpCaps[] = { {}, // GGML_OP_CROSS_ENTROPY_LOSS {}, // GGML_OP_CROSS_ENTROPY_LOSS_BACK {}, // GGML_OP_OPT_STEP_ADAMW + {}, // GGML_OP_OPT_STEP_SGD {}, // GGML_OP_GLU // ggml_unary_op @@ -355,6 +357,7 @@ constexpr const op_constructor_t kOpConstructors[] = { nullptr, // GGML_OP_IM2COL nullptr, // GGML_OP_IM2COL_BACK nullptr, // GGML_OP_CONV_2D + nullptr, // GGML_OP_CONV_3D nullptr, // GGML_OP_CONV_2D_DW nullptr, // GGML_OP_CONV_TRANSPOSE_2D nullptr, // GGML_OP_POOL_1D @@ -392,6 +395,7 @@ constexpr const op_constructor_t kOpConstructors[] = { nullptr, // GGML_OP_CROSS_ENTROPY_LOSS nullptr, // GGML_OP_CROSS_ENTROPY_LOSS_BACK nullptr, // GGML_OP_OPT_STEP_ADAMW + nullptr, // GGML_OP_OPT_STEP_SGD nullptr, // GGML_OP_GLU // ggml_unary_op