forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathint_backend.cpp
31 lines (23 loc) · 1.13 KB
/
int_backend.cpp
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
// Copyright (C) 2018-2024 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "int_backend.hpp"
#include "int_executable.hpp"
ov::runtime::interpreter::INTBackend::INTBackend() {}
ov::runtime::interpreter::INTBackend::INTBackend(const std::vector<std::string>& unsupported_op_name_list)
: m_unsupported_op_name_list{unsupported_op_name_list.begin(), unsupported_op_name_list.end()} {}
ov::Tensor ov::runtime::interpreter::INTBackend::create_tensor() {
return ov::Tensor();
}
ov::Tensor ov::runtime::interpreter::INTBackend::create_tensor(const element::Type& type, const Shape& shape) {
return ov::Tensor(type, shape);
}
ov::Tensor ov::runtime::interpreter::INTBackend::create_tensor(const element::Type& type,
const Shape& shape,
void* memory_pointer) {
return ov::Tensor(type, shape, memory_pointer);
}
std::shared_ptr<ov::runtime::Executable> ov::runtime::interpreter::INTBackend::compile(
std::shared_ptr<ov::Model> model) {
return std::make_shared<INTExecutable>(model);
}