Skip to content

Commit 8a32021

Browse files
committed
[CVS-161775] remove deprecated ov::element:undefined
remove deprecated ov::element type undefined to have dynamic type used instead. Signed-off-by: Walid Aly <[email protected]>
1 parent 5f5229a commit 8a32021

File tree

8 files changed

+16
-35
lines changed

8 files changed

+16
-35
lines changed

src/bindings/c/docs/api_overview.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,7 @@ typedef struct {
155155
```
156156
typedef enum {
157157
158-
UNDEFINED = 0U, //!< Undefined element type
159-
160-
DYNAMIC, //!< Dynamic element type
158+
DYNAMIC = 0U, //!< Dynamic element type
161159
162160
BOOLEAN, //!< boolean element type
163161

src/bindings/c/include/openvino/c/ov_common.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ typedef enum {
169169
* src/core/include/openvino/core/type/element_type.hpp
170170
*/
171171
typedef enum {
172-
UNDEFINED = 0U, //!< Undefined element type
173-
DYNAMIC = UNDEFINED, //!< Dynamic element type
172+
DYNAMIC = 0U, //!< Dynamic element type
174173
BOOLEAN, //!< boolean element type
175174
BF16, //!< bf16 element type
176175
F16, //!< f16 element type

src/bindings/c/src/ov_tensor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "common.h"
77

88
const std::map<ov_element_type_e, ov::element::Type> element_type_map = {
9-
{ov_element_type_e::UNDEFINED, ov::element::dynamic},
109
{ov_element_type_e::DYNAMIC, ov::element::dynamic},
1110
{ov_element_type_e::BOOLEAN, ov::element::boolean},
1211
{ov_element_type_e::BF16, ov::element::bf16},
@@ -41,7 +40,7 @@ ov_element_type_e find_ov_element_type_e(ov::element::Type type) {
4140
return iter->first;
4241
}
4342
}
44-
return ov_element_type_e::UNDEFINED;
43+
return ov_element_type_e::DYNAMIC;
4544
}
4645

4746
ov::element::Type get_element_type(ov_element_type_e type) {

src/core/include/openvino/core/type/element_type.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ namespace element {
3838
/// \ingroup ov_element_cpp_api
3939
enum class Type_t {
4040
dynamic, //!< Dynamic element type
41-
undefined OPENVINO_ENUM_DEPRECATED("This type is deprecated and will be removed in 2026.0. Use dynamic instead.") =
42-
dynamic, //!< Undefined element type
4341
boolean, //!< boolean element type
4442
bf16, //!< bf16 element type
4543
f16, //!< f16 element type
@@ -137,12 +135,6 @@ class OPENVINO_API Type {
137135

138136
using TypeVector = std::vector<Type>;
139137

140-
/// \brief undefined element type
141-
/// \ingroup ov_element_cpp_api
142-
OPENVINO_SUPPRESS_DEPRECATED_START
143-
OPENVINO_DEPRECATED("This type is deprecated and will be removed in 2026.0. Use dynamic instead.")
144-
inline constexpr Type undefined(Type_t::undefined);
145-
OPENVINO_SUPPRESS_DEPRECATED_END
146138
/// \brief dynamic element type
147139
/// \ingroup ov_element_cpp_api
148140
inline constexpr Type dynamic(Type_t::dynamic);

src/core/tests/element_type.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ TEST(element_type, from_string) {
7777
EXPECT_EQ(element::Type("F4E2M1"), element::f4e2m1);
7878
EXPECT_EQ(element::Type("f8e8m0"), element::f8e8m0);
7979
EXPECT_EQ(element::Type("F8E8M0"), element::f8e8m0);
80-
OPENVINO_SUPPRESS_DEPRECATED_START
81-
EXPECT_EQ(element::Type("undefined"), element::undefined);
82-
EXPECT_EQ(element::Type("UNSPECIFIED"), element::undefined);
83-
OPENVINO_SUPPRESS_DEPRECATED_END
8480
EXPECT_EQ(element::Type("dynamic"), element::dynamic);
8581

8682
EXPECT_THROW(element::Type("some_string"), ov::Exception);

src/plugins/intel_gpu/src/graph/impls/ocl_v2/utils/jitter.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,18 @@ void LayoutJitter::make_definitions(const layout& l, size_t shape_info_offset) {
152152
}
153153

154154
JitConstants make_type_jit_constants(const std::string& name, const ov::element::Type& value) {
155-
std::string type = "undefined";
156-
std::string max_val = "undefined";
157-
std::string min_val = "undefined";
158-
std::string val_one = "undefined";
159-
std::string val_zero = "undefined";
160-
std::string to_type = "undefined";
161-
std::string to_type_sat = "undefined";
162-
std::string as_type = "undefined";
163-
std::string max_func = "undefined";
164-
std::string min_func = "undefined";
165-
std::string abs_func = "undefined";
166-
std::string type_size = "undefined";
155+
std::string type = "dynamic";
156+
std::string max_val = "dynamic";
157+
std::string min_val = "dynamic";
158+
std::string val_one = "dynamic";
159+
std::string val_zero = "dynamic";
160+
std::string to_type = "dynamic";
161+
std::string to_type_sat = "dynamic";
162+
std::string as_type = "dynamic";
163+
std::string max_func = "dynamic";
164+
std::string min_func = "dynamic";
165+
std::string abs_func = "dynamic";
166+
std::string type_size = "dynamic";
167167
bool is_fp = false;
168168
switch (value) {
169169
case ov::element::i8:

src/tests/functional/plugin/conformance/test_runner/op_conformance_runner/include/utils/types.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ static std::set<std::string> get_element_type_names() {
3030
ov::element::Type_t::u1,
3131
ov::element::Type_t::boolean,
3232
ov::element::Type_t::dynamic};
33-
OPENVINO_SUPPRESS_DEPRECATED_START
34-
element_types.emplace_back(element::undefined);
35-
OPENVINO_SUPPRESS_DEPRECATED_END
3633
std::set<std::string> result;
3734
for (const auto& element_type : element_types) {
3835
std::string element_name = element_type.get_type_name();

src/tests/ov_helpers/ov_lpt_models/include/ov_lpt_models/common/builders.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ std::shared_ptr<Node> makeElementwise(const std::shared_ptr<ov::Node> data, cons
4949

5050
std::shared_ptr<Operation> operation;
5151
OPENVINO_SUPPRESS_DEPRECATED_START
52-
if ((description.outPrecision == ov::element::undefined) || (description.outPrecision == ov::element::dynamic) ||
52+
if ((description.outPrecision == ov::element::dynamic) ||
5353
(description.outPrecision == data->get_output_element_type(0))) {
5454
OPENVINO_SUPPRESS_DEPRECATED_END
5555
operation = std::make_shared<Operation>(data, operationConst);

0 commit comments

Comments
 (0)