Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[`intel-npu`] [`SUPPORT INTERNAL OPERATORS`] [`RMS`] Add support for RMS internal operator (#26899)

Mircea-Aurelian Dan0cfe2826deef
diff --git a/src/plugins/intel_npu/src/plugin/src/extension.cpp b/src/plugins/intel_npu/src/plugin/src/extension.cpp
new file mode 100644
index 00000000000..9626ffbd5e9
--- /dev/null
+++ b/src/plugins/intel_npu/src/plugin/src/extension.cpp
@@ -0,0 +1,14 @@
+// Copyright (C) 2018-2024 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#include "openvino/core/extension.hpp"
+
+#include "openvino/core/op_extension.hpp"
+#include "ov_ops/rms.hpp"
+
+#define OP_EXTENSION(NAME) std::make_shared<ov::OpExtension<NAME>>(),
+
+#define NPU_SUPPORTED_EXTENSIONS OP_EXTENSION(ov::op::internal::RMS)
+
+OPENVINO_CREATE_EXTENSIONS(std::vector<ov::Extension::Ptr>({NPU_SUPPORTED_EXTENSIONS}));