forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtf_utils.hpp
33 lines (28 loc) · 1.32 KB
/
tf_utils.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
// Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <openvino/core/partial_shape.hpp>
#include <openvino/core/type/element_type.hpp>
#include <openvino/frontend/extension.hpp>
#include <string>
#include <vector>
namespace ov {
namespace frontend {
namespace tensorflow {
namespace tests {
extern const std::string TF_FE;
// a wrapper to create TensorFlow Frontend and configure the conversion pipeline
// by registering new translator via extension, specifying (new) inputs, their shapes and types
std::shared_ptr<Model> convert_model(const std::string& model_path,
const ov::frontend::ConversionExtension::Ptr& conv_ext = nullptr,
const std::vector<std::string>& input_names = {},
const std::vector<ov::element::Type>& input_types = {},
const std::vector<ov::PartialShape>& input_shapes = {},
const std::vector<std::string>& input_names_to_freeze = {},
const std::vector<void*>& freeze_values = {},
const bool disable_mmap = false);
} // namespace tests
} // namespace tensorflow
} // namespace frontend
} // namespace ov