forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathov_extension.cpp
More file actions
23 lines (18 loc) · 729 Bytes
/
Copy pathov_extension.cpp
File metadata and controls
23 lines (18 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2018-2026 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <openvino/core/extension.hpp>
#include <openvino/core/op_extension.hpp>
#include <openvino/frontend/extension.hpp>
#include "identity.hpp"
// clang-format off
//! [ov_extension:entry_point]
OPENVINO_CREATE_EXTENSIONS(
std::vector<ov::Extension::Ptr>({
// Register operation itself, required to be read from IR
std::make_shared<ov::OpExtension<TemplateExtension::Identity>>(),
// Register operaton mapping, required when converted from framework model format
std::make_shared<ov::frontend::OpExtension<TemplateExtension::Identity>>()
}));
//! [ov_extension:entry_point]
// clang-format on