[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 <michal.lukaszewski@intel.com>
This commit is contained in:
Tomasz Jankowski 2024-06-05 20:30:41 +02:00 committed by GitHub
parent 00d525f5a2
commit a156b69ccc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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};
};