From a156b69cccbf090957b4cdcd7ba3d69fbc5b7b7e Mon Sep 17 00:00:00 2001 From: Tomasz Jankowski Date: Wed, 5 Jun 2024 20:30:41 +0200 Subject: [PATCH] [Core] Deprecate ambiguous ov::element::Type ctor (#24698) ### Details: - Added deprecation mark to ambiguous ov::element::Type ctor (https://github.com/openvinotoolkit/openvino/pull/11211#discussion_r834939746) ### Tickets: - CVS-133840 --------- Co-authored-by: Michal Lukaszewski --- src/core/include/openvino/core/type/element_type.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/include/openvino/core/type/element_type.hpp b/src/core/include/openvino/core/type/element_type.hpp index 531a8ccfcb5..b0d456fa0bd 100644 --- a/src/core/include/openvino/core/type/element_type.hpp +++ b/src/core/include/openvino/core/type/element_type.hpp @@ -69,7 +69,6 @@ public: Type() = default; Type(const Type&) = default; constexpr Type(const Type_t t) : m_type{t} {} - Type(size_t bitwidth, bool is_real, bool is_signed, bool is_quantized, const std::string& cname); explicit Type(const std::string& type); Type& operator=(const Type&) = default; std::string c_type_string() const; @@ -126,6 +125,9 @@ public: // Return element type in string representation std::string to_string() const; + OPENVINO_DEPRECATED("This constructor is deprecated. It will be removed in 2025.0") + Type(size_t bitwidth, bool is_real, bool is_signed, bool is_quantized, const std::string& cname); + private: Type_t m_type{Type_t::undefined}; };