forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ie_version.hpp
127 lines (111 loc) · 3.53 KB
/
ie_version.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
/**
* @brief A header file that provides versioning information for the Inference Engine library
*
* @file ie_version.hpp
*/
#pragma once
#if !defined(IN_OV_COMPONENT) && !defined(IE_LEGACY_HEADER_INCLUDED)
# define IE_LEGACY_HEADER_INCLUDED
# ifdef _MSC_VER
# pragma message( \
"The Inference Engine API is deprecated and will be removed in the 2024.0 release. For instructions on transitioning to the new API, please refer to https://docs.openvino.ai/latest/openvino_2_0_transition_guide.html")
# else
# warning("The Inference Engine API is deprecated and will be removed in the 2024.0 release. For instructions on transitioning to the new API, please refer to https://docs.openvino.ai/latest/openvino_2_0_transition_guide.html")
# endif
#endif
/**
* @def IE_VERSION_MAJOR
* @brief Defines Inference Engine major version
*
* @def IE_VERSION_MINOR
* @brief Defines Inference Engine minor version
*
* @def IE_VERSION_PATCH
* @brief Defines Inference Engine patch version
*/
#define IE_VERSION_MAJOR 2023
#define IE_VERSION_MINOR 1
#define IE_VERSION_PATCH 0
#include "ie_api.h"
/**
* @brief Inference Engine C++ API
*/
namespace InferenceEngine {
IE_SUPPRESS_DEPRECATED_START
/**
* @struct Version
* @brief Represents version information that describes plugins and the inference engine runtime library
*/
#pragma pack(push, 1)
struct INFERENCE_ENGINE_1_0_DEPRECATED Version {
IE_SUPPRESS_DEPRECATED_START
/**
* @deprecated Use IE_VERSION_[MAJOR|MINOR|PATCH] definitions, buildNumber property
* @brief An API version reflects the set of supported features
*/
struct INFERENCE_ENGINE_1_0_DEPRECATED ApiVersion {
INFERENCE_ENGINE_DEPRECATED("Use IE_VERSION_[MAJOR|MINOR|PATCH] definitions, buildNumber property")
int major; //!< A major version
INFERENCE_ENGINE_DEPRECATED("Use IE_VERSION_[MAJOR|MINOR|PATCH] definitions, buildNumber property")
int minor; //!< A minor version
/**
* @brief A default construtor
*/
ApiVersion() {
major = 0;
minor = 0;
}
/**
* @brief A default construtor
* @param v A version to copy
*/
ApiVersion(const ApiVersion& v) {
major = v.major;
minor = v.minor;
}
/**
* @brief A default construtor
* @param _major A major version to copy
* @param _minor A minor version to copy
*/
ApiVersion(int _major, int _minor) {
major = _major;
minor = _minor;
}
/**
* @brief A copy operator
* @param other An object to copy
* @return A copy
*/
ApiVersion& operator=(const ApiVersion& other) {
major = other.major;
minor = other.minor;
return *this;
}
};
/**
* @brief An API version reflects the set of supported features
*/
ApiVersion apiVersion;
IE_SUPPRESS_DEPRECATED_END
/**
* @brief A null terminated string with build number
*/
const char* buildNumber;
/**
* @brief A null terminated description string
*/
const char* description;
};
#pragma pack(pop)
/**
* @brief Gets the current Inference Engine version
*
* @return The current Inference Engine version
*/
INFERENCE_ENGINE_API(const Version*) GetInferenceEngineVersion() noexcept;
IE_SUPPRESS_DEPRECATED_END
} // namespace InferenceEngine