forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathidentity.hpp
More file actions
29 lines (22 loc) · 779 Bytes
/
identity.hpp
File metadata and controls
29 lines (22 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (C) 2018-2026 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
//! [op:common_include]
#include <openvino/op/op.hpp>
//! [op:common_include]
//! [op:header]
namespace TemplateExtension {
class Identity : public ov::op::Op {
public:
OPENVINO_OP("Identity");
Identity() = default;
Identity(const ov::Output<ov::Node>& arg);
void validate_and_infer_types() override;
std::shared_ptr<ov::Node> clone_with_new_inputs(const ov::OutputVector& new_args) const override;
bool visit_attributes(ov::AttributeVisitor& visitor) override;
bool evaluate(ov::TensorVector& outputs, const ov::TensorVector& inputs) const override;
bool has_evaluate() const override;
};
//! [op:header]
} // namespace TemplateExtension