[Remove APIs] remove api set_data_shape (#15805)

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>
This commit is contained in:
Xuejun Zhai 2023-02-20 04:20:30 +08:00 committed by GitHub
parent b7bcef6864
commit 749ff8c93f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 12 deletions

View File

@ -225,13 +225,6 @@ public:
/// Repeated values are allowed. /// Repeated values are allowed.
AxisSet get_axis_set_val() const; 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 /// \brief Return data size in bytes
size_t get_byte_size() const { size_t get_byte_size() const {
return m_data->size(); return m_data->size();

View File

@ -465,11 +465,6 @@ ov::AxisSet ov::op::v0::Constant::get_axis_set_val() const {
return output_axis_set; 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::Node> ov::op::v0::Constant::clone_with_new_inputs(const OutputVector& new_args) const { shared_ptr<ov::Node> ov::op::v0::Constant::clone_with_new_inputs(const OutputVector& new_args) const {
OV_OP_SCOPE(v0_Constant_clone_with_new_inputs); OV_OP_SCOPE(v0_Constant_clone_with_new_inputs);
check_new_args_count(this, new_args); check_new_args_count(this, new_args);