forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathint_backend.hpp
42 lines (31 loc) · 1.03 KB
/
int_backend.hpp
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
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <initializer_list>
#include <memory>
#include <sstream>
#include <string>
#include <vector>
#include "backend.hpp"
#include "openvino/core/model.hpp"
namespace ov {
namespace runtime {
namespace interpreter {
class INTBackend : public Backend {
public:
INTBackend();
INTBackend(const std::vector<std::string>& unsupported_op_name_list);
INTBackend(const INTBackend&) = delete;
INTBackend(INTBackend&&) = delete;
INTBackend& operator=(const INTBackend&) = delete;
ov::Tensor create_tensor() override;
ov::Tensor create_tensor(const element::Type& type, const Shape& shape, void* memory_pointer) override;
ov::Tensor create_tensor(const element::Type& type, const Shape& shape) override;
std::shared_ptr<Executable> compile(std::shared_ptr<ov::Model> model) override;
private:
std::set<std::string> m_unsupported_op_name_list;
};
} // namespace interpreter
} // namespace runtime
} // namespace ov