diff --git a/ggml/src/ggml-qnn/qnn/backend-ops.cpp b/ggml/src/ggml-qnn/qnn/backend-ops.cpp index 1446115a57..784e1deec7 100644 --- a/ggml/src/ggml-qnn/qnn/backend-ops.cpp +++ b/ggml/src/ggml-qnn/qnn/backend-ops.cpp @@ -164,6 +164,7 @@ constexpr const bool kQnnSupportedOps[] = { false, // GGML_UNARY_OP_HARDSWISH false, // GGML_UNARY_OP_HARDSIGMOID false, // GGML_UNARY_OP_EXP + false, // GGML_UNARY_OP_GELU_ERF }; static_assert(kQnnSupportedOps[GGML_OP_NONE], "GGML_OP_NONE is not true"); diff --git a/ggml/src/ggml-qnn/qnn/op-config-caps.cpp b/ggml/src/ggml-qnn/qnn/op-config-caps.cpp index 081b7fba7f..2a6f7abca4 100644 --- a/ggml/src/ggml-qnn/qnn/op-config-caps.cpp +++ b/ggml/src/ggml-qnn/qnn/op-config-caps.cpp @@ -213,6 +213,7 @@ constexpr const qnn_op_caps_t kOpCaps[] = { {}, // GGML_UNARY_OP_HARDSWISH {}, // GGML_UNARY_OP_HARDSIGMOID {}, // GGML_UNARY_OP_EXP + {}, // GGML_UNARY_OP_GELU_ERF }; 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[] = { nullptr, // GGML_UNARY_OP_HARDSWISH nullptr, // GGML_UNARY_OP_HARDSIGMOID nullptr, // GGML_UNARY_OP_EXP + nullptr, // GGML_UNARY_OP_GELU_ERF }; static_assert(kOpConstructors[GGML_OP_NONE] == nullptr, "GGML_OP_NONE does not match the nullptr function");