diff --git a/src/core/include/openvino/op/constant.hpp b/src/core/include/openvino/op/constant.hpp index d99837aabdc..9f45d0d8b8c 100644 --- a/src/core/include/openvino/op/constant.hpp +++ b/src/core/include/openvino/op/constant.hpp @@ -225,13 +225,6 @@ public: /// Repeated values are allowed. AxisSet get_axis_set_val() const; - /// \brief Update Constant shape. New shape size must equal to the data elements - /// count - /// - /// \param shape The shape of the tensor constant. - OPENVINO_DEPRECATED("Use Constant c-tor with shape argument instead") - void set_data_shape(const Shape& shape); - /// \brief Return data size in bytes size_t get_byte_size() const { return m_data->size(); diff --git a/src/core/src/op/constant.cpp b/src/core/src/op/constant.cpp index 4d695cd7d58..51aa2d23e5a 100644 --- a/src/core/src/op/constant.cpp +++ b/src/core/src/op/constant.cpp @@ -465,11 +465,6 @@ ov::AxisSet ov::op::v0::Constant::get_axis_set_val() const { return output_axis_set; } -void ov::op::v0::Constant::set_data_shape(const ov::Shape& shape) { - NGRAPH_CHECK(shape_size(shape) == shape_size(m_shape)); - m_shape = shape; -} - shared_ptr ov::op::v0::Constant::clone_with_new_inputs(const OutputVector& new_args) const { OV_OP_SCOPE(v0_Constant_clone_with_new_inputs); check_new_args_count(this, new_args);