OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[RTTI] Move AttributeAdapter<..>'s dtor definitions to cpp (#29073)
Tomasz Jankowski8ab7374e3de1
diff --git a/src/core/dev_api/openvino/runtime/aligned_buffer.hpp b/src/core/dev_api/openvino/runtime/aligned_buffer.hppindex 992d258895f..a7253331de2 100644--- a/src/core/dev_api/openvino/runtime/aligned_buffer.hpp+++ b/src/core/dev_api/openvino/runtime/aligned_buffer.hpp@@ -53,7 +53,6 @@ public:return get_ptr<T>();}-private:AlignedBuffer(const AlignedBuffer&) = delete;AlignedBuffer& operator=(const AlignedBuffer&) = delete;@@ -68,7 +67,7 @@ class OPENVINO_API AttributeAdapter<std::shared_ptr<ov::AlignedBuffer>>: public DirectValueAccessor<std::shared_ptr<ov::AlignedBuffer>> {public:AttributeAdapter(std::shared_ptr<ov::AlignedBuffer>& value);-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::shared_ptr<ov::AlignedBuffer>");};diff --git a/src/core/dev_api/openvino/runtime/string_aligned_buffer.hpp b/src/core/dev_api/openvino/runtime/string_aligned_buffer.hppindex 394d882567f..38a28f84d8f 100644--- a/src/core/dev_api/openvino/runtime/string_aligned_buffer.hpp+++ b/src/core/dev_api/openvino/runtime/string_aligned_buffer.hpp@@ -52,6 +52,8 @@ public:void get_header(std::shared_ptr<uint8_t>& header, size_t& header_size);void get_raw_string_by_index(const char*& raw_string_ptr, size_t& raw_string_size, size_t string_ind);+ ~AttributeAdapter() override;+protected:std::shared_ptr<uint8_t> m_header;size_t m_header_size;@@ -68,6 +70,8 @@ public:void get_header(std::shared_ptr<uint8_t>& header, size_t& header_size);void get_raw_string_by_index(const char*& raw_string_ptr, size_t& raw_string_size, size_t string_ind);+ ~AttributeAdapter() override;+protected:std::shared_ptr<uint8_t> m_header;size_t m_header_size;diff --git a/src/core/include/openvino/core/attribute_adapter.hpp b/src/core/include/openvino/core/attribute_adapter.hppindex 8f00cc6cfd6..ec1c8dd992a 100644--- a/src/core/include/openvino/core/attribute_adapter.hpp+++ b/src/core/include/openvino/core/attribute_adapter.hpp@@ -232,7 +232,7 @@ template <>class OPENVINO_API AttributeAdapter<float> : public IndirectScalarValueAccessor<float, double> {public:AttributeAdapter(float& value) : IndirectScalarValueAccessor<float, double>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<float>");};@@ -241,7 +241,7 @@ template <>class OPENVINO_API AttributeAdapter<double> : public DirectValueAccessor<double> {public:AttributeAdapter(double& value) : DirectValueAccessor<double>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<double>");};@@ -250,7 +250,7 @@ template <>class OPENVINO_API AttributeAdapter<std::string> : public DirectValueAccessor<std::string> {public:AttributeAdapter(std::string& value) : DirectValueAccessor<std::string>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::string>");};@@ -259,7 +259,7 @@ template <>class OPENVINO_API AttributeAdapter<bool> : public DirectValueAccessor<bool> {public:AttributeAdapter(bool& value) : DirectValueAccessor<bool>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<bool>");};@@ -268,7 +268,7 @@ template <>class OPENVINO_API AttributeAdapter<int8_t> : public IndirectScalarValueAccessor<int8_t, int64_t> {public:AttributeAdapter(int8_t& value) : IndirectScalarValueAccessor<int8_t, int64_t>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<int8_t>");};@@ -277,7 +277,7 @@ template <>class OPENVINO_API AttributeAdapter<int16_t> : public IndirectScalarValueAccessor<int16_t, int64_t> {public:AttributeAdapter(int16_t& value) : IndirectScalarValueAccessor<int16_t, int64_t>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<int16_t>");};@@ -286,7 +286,7 @@ template <>class OPENVINO_API AttributeAdapter<int32_t> : public IndirectScalarValueAccessor<int32_t, int64_t> {public:AttributeAdapter(int32_t& value) : IndirectScalarValueAccessor<int32_t, int64_t>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<int32_t>");};@@ -295,7 +295,7 @@ template <>class OPENVINO_API AttributeAdapter<int64_t> : public DirectValueAccessor<int64_t> {public:AttributeAdapter(int64_t& value) : DirectValueAccessor<int64_t>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<int64_t>");};@@ -304,7 +304,7 @@ template <>class OPENVINO_API AttributeAdapter<uint8_t> : public IndirectScalarValueAccessor<uint8_t, int64_t> {public:AttributeAdapter(uint8_t& value) : IndirectScalarValueAccessor<uint8_t, int64_t>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<uint8_t>");};@@ -313,7 +313,7 @@ template <>class OPENVINO_API AttributeAdapter<uint16_t> : public IndirectScalarValueAccessor<uint16_t, int64_t> {public:AttributeAdapter(uint16_t& value) : IndirectScalarValueAccessor<uint16_t, int64_t>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<uint16_t>");};@@ -322,7 +322,7 @@ template <>class OPENVINO_API AttributeAdapter<uint32_t> : public IndirectScalarValueAccessor<uint32_t, int64_t> {public:AttributeAdapter(uint32_t& value) : IndirectScalarValueAccessor<uint32_t, int64_t>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<uint32_t>");};@@ -331,7 +331,7 @@ template <>class OPENVINO_API AttributeAdapter<uint64_t> : public IndirectScalarValueAccessor<uint64_t, int64_t> {public:AttributeAdapter(uint64_t& value) : IndirectScalarValueAccessor<uint64_t, int64_t>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<uint64_t>");};@@ -341,7 +341,7 @@ template <>class OPENVINO_API AttributeAdapter<size_t> : public IndirectScalarValueAccessor<size_t, int64_t> {public:AttributeAdapter(size_t& value) : IndirectScalarValueAccessor<size_t, int64_t>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<size_t>");};@@ -351,7 +351,7 @@ class OPENVINO_API AttributeAdapter<std::vector<size_t>>public:AttributeAdapter(std::vector<size_t>& value): IndirectVectorValueAccessor<std::vector<size_t>, std::vector<int64_t>>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::vector<size_t>");};#endif@@ -364,7 +364,7 @@ template <>class OPENVINO_API AttributeAdapter<std::vector<int8_t>> : public DirectValueAccessor<std::vector<int8_t>> {public:AttributeAdapter(std::vector<int8_t>& value) : DirectValueAccessor<std::vector<int8_t>>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::vector<int8_t>");};@@ -373,7 +373,7 @@ template <>class OPENVINO_API AttributeAdapter<std::vector<int16_t>> : public DirectValueAccessor<std::vector<int16_t>> {public:AttributeAdapter(std::vector<int16_t>& value) : DirectValueAccessor<std::vector<int16_t>>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::vector<int16_t>");};@@ -382,7 +382,7 @@ template <>class OPENVINO_API AttributeAdapter<std::vector<int32_t>> : public DirectValueAccessor<std::vector<int32_t>> {public:AttributeAdapter(std::vector<int32_t>& value) : DirectValueAccessor<std::vector<int32_t>>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::vector<int32_t>");};@@ -391,7 +391,7 @@ template <>class OPENVINO_API AttributeAdapter<std::vector<int64_t>> : public DirectValueAccessor<std::vector<int64_t>> {public:AttributeAdapter(std::vector<int64_t>& value) : DirectValueAccessor<std::vector<int64_t>>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::vector<int64_t>");};@@ -400,7 +400,7 @@ template <>class OPENVINO_API AttributeAdapter<std::vector<uint8_t>> : public DirectValueAccessor<std::vector<uint8_t>> {public:AttributeAdapter(std::vector<uint8_t>& value) : DirectValueAccessor<std::vector<uint8_t>>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::vector<uint8_t>");};@@ -409,7 +409,7 @@ template <>class OPENVINO_API AttributeAdapter<std::vector<uint16_t>> : public DirectValueAccessor<std::vector<uint16_t>> {public:AttributeAdapter(std::vector<uint16_t>& value) : DirectValueAccessor<std::vector<uint16_t>>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::vector<uint16_t>");};@@ -418,7 +418,7 @@ template <>class OPENVINO_API AttributeAdapter<std::vector<uint32_t>> : public DirectValueAccessor<std::vector<uint32_t>> {public:AttributeAdapter(std::vector<uint32_t>& value) : DirectValueAccessor<std::vector<uint32_t>>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::vector<uint32_t>");};@@ -427,7 +427,7 @@ template <>class OPENVINO_API AttributeAdapter<std::vector<uint64_t>> : public DirectValueAccessor<std::vector<uint64_t>> {public:AttributeAdapter(std::vector<uint64_t>& value) : DirectValueAccessor<std::vector<uint64_t>>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::vector<uint64_t>");};@@ -436,7 +436,7 @@ template <>class OPENVINO_API AttributeAdapter<std::vector<float>> : public DirectValueAccessor<std::vector<float>> {public:AttributeAdapter(std::vector<float>& value) : DirectValueAccessor<std::vector<float>>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::vector<float>");};@@ -445,7 +445,7 @@ template <>class OPENVINO_API AttributeAdapter<std::vector<double>> : public DirectValueAccessor<std::vector<double>> {public:AttributeAdapter(std::vector<double>& value) : DirectValueAccessor<std::vector<double>>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::vector<double>");};@@ -454,7 +454,7 @@ template <>class OPENVINO_API AttributeAdapter<std::vector<std::string>> : public DirectValueAccessor<std::vector<std::string>> {public:AttributeAdapter(std::vector<std::string>& value) : DirectValueAccessor<std::vector<std::string>>(value) {}-+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::vector<std::string>");};@@ -463,5 +463,6 @@ class OPENVINO_API AttributeAdapter<std::set<std::string>> : public DirectValueApublic:OPENVINO_RTTI("AttributeAdapter<set<string>>");AttributeAdapter(std::set<std::string>& value) : DirectValueAccessor<std::set<std::string>>(value) {}+ ~AttributeAdapter() override;};} // namespace ovdiff --git a/src/core/include/openvino/core/axis_set.hpp b/src/core/include/openvino/core/axis_set.hppindex d912192f574..bc7c7d6fb17 100644--- a/src/core/include/openvino/core/axis_set.hpp+++ b/src/core/include/openvino/core/axis_set.hpp@@ -41,13 +41,14 @@ template <>class OPENVINO_API AttributeAdapter<ov::AxisSet> : public ValueAccessor<std::vector<int64_t>> {public:AttributeAdapter(ov::AxisSet& value) : m_ref(value) {}+ OPENVINO_RTTI("AttributeAdapter<AxisSet>");+ ~AttributeAdapter() override;const std::vector<int64_t>& get() override;void set(const std::vector<int64_t>& value) override;operator ov::AxisSet&() {return m_ref;}- OPENVINO_RTTI("AttributeAdapter<AxisSet>");protected:ov::AxisSet& m_ref;diff --git a/src/core/include/openvino/core/axis_vector.hpp b/src/core/include/openvino/core/axis_vector.hppindex 43a9f9debe0..702868ec4c0 100644--- a/src/core/include/openvino/core/axis_vector.hpp+++ b/src/core/include/openvino/core/axis_vector.hpp@@ -44,6 +44,7 @@ class OPENVINO_API AttributeAdapter<AxisVector> : public IndirectVectorValueAccepublic:AttributeAdapter(AxisVector& value) : IndirectVectorValueAccessor<AxisVector, std::vector<int64_t>>(value) {}OPENVINO_RTTI("AttributeAdapter<AxisVector>");+ ~AttributeAdapter() override;};} // namespace ovdiff --git a/src/core/include/openvino/core/coordinate.hpp b/src/core/include/openvino/core/coordinate.hppindex 727d6bfbe08..f63e7a93f45 100644--- a/src/core/include/openvino/core/coordinate.hpp+++ b/src/core/include/openvino/core/coordinate.hpp@@ -45,5 +45,6 @@ public:AttributeAdapter(Coordinate& value) : IndirectVectorValueAccessor<Coordinate, std::vector<int64_t>>(value) {}OPENVINO_RTTI("AttributeAdapter<Coordinate>");+ ~AttributeAdapter() override;};} // namespace ovdiff --git a/src/core/include/openvino/core/coordinate_diff.hpp b/src/core/include/openvino/core/coordinate_diff.hppindex 15e720c8e76..453d49ead61 100644--- a/src/core/include/openvino/core/coordinate_diff.hpp+++ b/src/core/include/openvino/core/coordinate_diff.hpp@@ -41,14 +41,13 @@ std::ostream& operator<<(std::ostream& s, const CoordinateDiff& coordinate_diff)template <>class OPENVINO_API AttributeAdapter<CoordinateDiff>- : public IndirectVectorValueAccessor<CoordinateDiff, std::vector<int64_t>>--{+ : public IndirectVectorValueAccessor<CoordinateDiff, std::vector<int64_t>> {public:AttributeAdapter(CoordinateDiff& value): IndirectVectorValueAccessor<CoordinateDiff, std::vector<int64_t>>(value) {}OPENVINO_RTTI("AttributeAdapter<CoordinateDiff>");+ ~AttributeAdapter() override;};} // namespace ovdiff --git a/src/core/include/openvino/core/dimension.hpp b/src/core/include/openvino/core/dimension.hppindex c47335f3d48..621a0444e59 100644--- a/src/core/include/openvino/core/dimension.hpp+++ b/src/core/include/openvino/core/dimension.hpp@@ -212,5 +212,6 @@ public:AttributeAdapter(ov::Dimension& value) : DirectValueAccessor<ov::Dimension>(value) {}OPENVINO_RTTI("AttributeAdapter<ov::Dimension>");+ ~AttributeAdapter() override;};} // namespace ovdiff --git a/src/core/include/openvino/core/layout.hpp b/src/core/include/openvino/core/layout.hppindex ccf8385012d..0cc8661a6c3 100644--- a/src/core/include/openvino/core/layout.hpp+++ b/src/core/include/openvino/core/layout.hpp@@ -191,6 +191,7 @@ class OPENVINO_API AttributeAdapter<Layout> : public ValueAccessor<std::string>public:OPENVINO_RTTI("AttributeAdapter<Layout>");explicit AttributeAdapter(Layout& value) : m_ref(value) {}+ ~AttributeAdapter() override;const std::string& get() override;void set(const std::string& value) override;diff --git a/src/core/include/openvino/core/model.hpp b/src/core/include/openvino/core/model.hppindex 2453758442a..820e17e7acd 100644--- a/src/core/include/openvino/core/model.hpp+++ b/src/core/include/openvino/core/model.hpp@@ -576,6 +576,7 @@ public:AttributeAdapter(std::shared_ptr<ov::Model>& value) : DirectValueAccessor<std::shared_ptr<ov::Model>>(value) {}OPENVINO_RTTI("AttributeAdapter<std::shared_ptr<Model>");+ ~AttributeAdapter() override;};/// \brief Helper method to get associated batch size for a Modeldiff --git a/src/core/include/openvino/core/node.hpp b/src/core/include/openvino/core/node.hppindex 3101924d81f..97397e633ad 100644--- a/src/core/include/openvino/core/node.hpp+++ b/src/core/include/openvino/core/node.hpp@@ -553,6 +553,7 @@ template <>class OPENVINO_API AttributeAdapter<std::shared_ptr<ov::Node>> : public VisitorAdapter {public:AttributeAdapter(std::shared_ptr<ov::Node>& value);+ ~AttributeAdapter() override;bool visit_attributes(AttributeVisitor& visitor) override;OPENVINO_RTTI("AttributeAdapter<std::shared_ptr<Node>>");@@ -565,6 +566,7 @@ template <>class OPENVINO_API AttributeAdapter<ov::NodeVector> : public VisitorAdapter {public:AttributeAdapter(ov::NodeVector& ref);+ ~AttributeAdapter() override;bool visit_attributes(AttributeVisitor& visitor) override;diff --git a/src/core/include/openvino/core/partial_shape.hpp b/src/core/include/openvino/core/partial_shape.hppindex 9a001f8ef20..ad23950a408 100644--- a/src/core/include/openvino/core/partial_shape.hpp+++ b/src/core/include/openvino/core/partial_shape.hpp@@ -439,5 +439,6 @@ public:AttributeAdapter(ov::PartialShape& value) : DirectValueAccessor<ov::PartialShape>(value) {}OPENVINO_RTTI("AttributeAdapter<PartialShape>");+ ~AttributeAdapter() override;};} // namespace ovdiff --git a/src/core/include/openvino/core/shape.hpp b/src/core/include/openvino/core/shape.hppindex e10e7e33b1d..0fe6a92548e 100644--- a/src/core/include/openvino/core/shape.hpp+++ b/src/core/include/openvino/core/shape.hpp@@ -145,5 +145,6 @@ public:OPENVINO_RTTI("AttributeAdapter<Shape>");AttributeAdapter(ov::Shape& value) : IndirectVectorValueAccessor<ov::Shape, std::vector<int64_t>>(value) {}+ ~AttributeAdapter() override;};} // namespace ovdiff --git a/src/core/include/openvino/core/strides.hpp b/src/core/include/openvino/core/strides.hppindex fcda7498472..10a23503c8d 100644--- a/src/core/include/openvino/core/strides.hpp+++ b/src/core/include/openvino/core/strides.hpp@@ -41,6 +41,7 @@ template <>class OPENVINO_API AttributeAdapter<Strides> : public IndirectVectorValueAccessor<Strides, std::vector<int64_t>> {public:AttributeAdapter(Strides& value) : IndirectVectorValueAccessor<Strides, std::vector<int64_t>>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<Strides>");};diff --git a/src/core/include/openvino/core/type/element_type.hpp b/src/core/include/openvino/core/type/element_type.hppindex 7878d45822a..4a1fe8ff3b3 100644--- a/src/core/include/openvino/core/type/element_type.hpp+++ b/src/core/include/openvino/core/type/element_type.hpp@@ -281,6 +281,7 @@ template <>class OPENVINO_API AttributeAdapter<ov::element::Type_t> : public EnumAttributeAdapterBase<ov::element::Type_t> {public:AttributeAdapter(ov::element::Type_t& value) : EnumAttributeAdapterBase<ov::element::Type_t>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::element::Type_t>");};@@ -290,6 +291,7 @@ class OPENVINO_API AttributeAdapter<ov::element::Type> : public ValueAccessor<stpublic:OPENVINO_RTTI("AttributeAdapter<ov::element::Type>");constexpr AttributeAdapter(ov::element::Type& value) : m_ref(value) {}+ ~AttributeAdapter() override;const std::string& get() override;void set(const std::string& value) override;@@ -307,6 +309,7 @@ class OPENVINO_API AttributeAdapter<ov::element::TypeVector> : public DirectValupublic:OPENVINO_RTTI("AttributeAdapter<ov::element::TypeVector>");AttributeAdapter(ov::element::TypeVector& value) : DirectValueAccessor<ov::element::TypeVector>(value) {}+ ~AttributeAdapter() override;};} // namespace ovdiff --git a/src/core/include/openvino/op/binary_convolution.hpp b/src/core/include/openvino/op/binary_convolution.hppindex f0644dd4ce1..c0de7449da0 100644--- a/src/core/include/openvino/op/binary_convolution.hpp+++ b/src/core/include/openvino/op/binary_convolution.hpp@@ -99,6 +99,7 @@ public:: EnumAttributeAdapterBase<op::v1::BinaryConvolution::BinaryConvolutionMode>(value) {}OPENVINO_RTTI("AttributeAdapter<ov::op::v1::BinaryConvolution::BinaryConvolutionMode>");+ ~AttributeAdapter() override;};} // namespace ovdiff --git a/src/core/include/openvino/op/depth_to_space.hpp b/src/core/include/openvino/op/depth_to_space.hppindex a094efd399a..f4839e1a12c 100644--- a/src/core/include/openvino/op/depth_to_space.hpp+++ b/src/core/include/openvino/op/depth_to_space.hpp@@ -76,6 +76,7 @@ public:: EnumAttributeAdapterBase<op::v0::DepthToSpace::DepthToSpaceMode>(value) {}OPENVINO_RTTI("AttributeAdapter<ov::op::v0::DepthToSpace::DepthToSpaceMode>");+ ~AttributeAdapter() override;};} // namespace ovdiff --git a/src/core/include/openvino/op/gelu.hpp b/src/core/include/openvino/op/gelu.hppindex 20a92e1c068..af97d3471d7 100644--- a/src/core/include/openvino/op/gelu.hpp+++ b/src/core/include/openvino/op/gelu.hpp@@ -76,6 +76,8 @@ class OPENVINO_API AttributeAdapter<op::GeluApproximationMode>public:AttributeAdapter(op::GeluApproximationMode& value) : EnumAttributeAdapterBase<op::GeluApproximationMode>(value) {}+ ~AttributeAdapter() override;+OPENVINO_RTTI("AttributeAdapter<ov::op::GeluApproximationMode>");};} // namespace ovdiff --git a/src/core/include/openvino/op/grid_sample.hpp b/src/core/include/openvino/op/grid_sample.hppindex 092e1835661..659713797ef 100644--- a/src/core/include/openvino/op/grid_sample.hpp+++ b/src/core/include/openvino/op/grid_sample.hpp@@ -82,6 +82,7 @@ public:: EnumAttributeAdapterBase<op::v9::GridSample::InterpolationMode>(value) {}OPENVINO_RTTI("AttributeAdapter<ov::op::v9::GridSample::InterpolationMode>");+ ~AttributeAdapter() override;};template <>class OPENVINO_API AttributeAdapter<op::v9::GridSample::PaddingMode>@@ -91,5 +92,6 @@ public:: EnumAttributeAdapterBase<op::v9::GridSample::PaddingMode>(value) {}OPENVINO_RTTI("AttributeAdapter<ov::op::v9::GridSample::PaddingMode>");+ ~AttributeAdapter() override;};} // namespace ovdiff --git a/src/core/include/openvino/op/interpolate.hpp b/src/core/include/openvino/op/interpolate.hppindex 718b26e4ad5..d60e95cdb7f 100644--- a/src/core/include/openvino/op/interpolate.hpp+++ b/src/core/include/openvino/op/interpolate.hpp@@ -162,5 +162,6 @@ public:: EnumAttributeAdapterBase<op::v0::Interpolate::InterpolateMode>(value) {}OPENVINO_RTTI("AttributeAdapter<ov::op::v0::Interpolate::InterpolateMode>");+ ~AttributeAdapter() override;};} // namespace ovdiff --git a/src/core/include/openvino/op/loop.hpp b/src/core/include/openvino/op/loop.hppindex d59e8f616e6..1f000ba4b0b 100644--- a/src/core/include/openvino/op/loop.hpp+++ b/src/core/include/openvino/op/loop.hpp@@ -87,6 +87,7 @@ public:: DirectValueAccessor<op::v5::Loop::SpecialBodyPorts>(value) {}OPENVINO_RTTI("AttributeAdapter<ov::op::v5::Loop::SpecialBodyPorts>");+ ~AttributeAdapter() override;};} // namespace ovdiff --git a/src/core/include/openvino/op/lstm_cell.hpp b/src/core/include/openvino/op/lstm_cell.hppindex 2dca083a3f0..216a60b22f1 100644--- a/src/core/include/openvino/op/lstm_cell.hpp+++ b/src/core/include/openvino/op/lstm_cell.hpp@@ -388,6 +388,7 @@ public:AttributeAdapter(op::LSTMWeightsFormat& value) : EnumAttributeAdapterBase<op::LSTMWeightsFormat>(value) {}OPENVINO_RTTI("AttributeAdapter<ov::op::LSTMWeightsFormat>");+ ~AttributeAdapter() override;};} // namespace ovdiff --git a/src/core/include/openvino/op/matrix_nms.hpp b/src/core/include/openvino/op/matrix_nms.hppindex 32e44f463c8..34bd62c159c 100644--- a/src/core/include/openvino/op/matrix_nms.hpp+++ b/src/core/include/openvino/op/matrix_nms.hpp@@ -125,6 +125,7 @@ public:: EnumAttributeAdapterBase<op::v8::MatrixNms::DecayFunction>(value) {}OPENVINO_RTTI("AttributeAdapter<ov::op::v8::MatrixNms::DecayFunction>");+ ~AttributeAdapter() override;};OPENVINO_API@@ -138,6 +139,7 @@ public:: EnumAttributeAdapterBase<op::v8::MatrixNms::SortResultType>(value) {}OPENVINO_RTTI("AttributeAdapter<ov::op::v8::MatrixNms::SortResultType>");+ ~AttributeAdapter() override;};} // namespace ovdiff --git a/src/core/include/openvino/op/mvn.hpp b/src/core/include/openvino/op/mvn.hppindex 205a0d4aa8b..c22b863560c 100644--- a/src/core/include/openvino/op/mvn.hpp+++ b/src/core/include/openvino/op/mvn.hpp@@ -160,6 +160,8 @@ public:AttributeAdapter(op::MVNEpsMode& value) : EnumAttributeAdapterBase<op::MVNEpsMode>(value) {}OPENVINO_RTTI("AttributeAdapter<ov::op::MVNEpsMode>");++ ~AttributeAdapter() override;};} // namespace ovdiff --git a/src/core/include/openvino/op/non_max_suppression.hpp b/src/core/include/openvino/op/non_max_suppression.hppindex dedbf78b532..92958497acb 100644--- a/src/core/include/openvino/op/non_max_suppression.hpp+++ b/src/core/include/openvino/op/non_max_suppression.hpp@@ -526,6 +526,7 @@ class OPENVINO_API AttributeAdapter<op::v1::NonMaxSuppression::BoxEncodingType>public:AttributeAdapter(op::v1::NonMaxSuppression::BoxEncodingType& value): EnumAttributeAdapterBase<op::v1::NonMaxSuppression::BoxEncodingType>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::v1::NonMaxSuppression::BoxEncodingType>");};@@ -536,6 +537,7 @@ class OPENVINO_API AttributeAdapter<op::v3::NonMaxSuppression::BoxEncodingType>public:AttributeAdapter(op::v3::NonMaxSuppression::BoxEncodingType& value): EnumAttributeAdapterBase<op::v3::NonMaxSuppression::BoxEncodingType>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::v3::NonMaxSuppression::BoxEncodingType>");};@@ -546,6 +548,7 @@ class OPENVINO_API AttributeAdapter<op::v5::NonMaxSuppression::BoxEncodingType>public:AttributeAdapter(op::v5::NonMaxSuppression::BoxEncodingType& value): EnumAttributeAdapterBase<op::v5::NonMaxSuppression::BoxEncodingType>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::v5::NonMaxSuppression::BoxEncodingType>");};@@ -556,6 +559,7 @@ class OPENVINO_API AttributeAdapter<op::v9::NonMaxSuppression::BoxEncodingType>public:AttributeAdapter(op::v9::NonMaxSuppression::BoxEncodingType& value): EnumAttributeAdapterBase<op::v9::NonMaxSuppression::BoxEncodingType>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::v9::NonMaxSuppression::BoxEncodingType>");};diff --git a/src/core/include/openvino/op/parameter.hpp b/src/core/include/openvino/op/parameter.hppindex 9068126a614..5cb618e8de7 100644--- a/src/core/include/openvino/op/parameter.hpp+++ b/src/core/include/openvino/op/parameter.hpp@@ -76,6 +76,8 @@ public:bool visit_attributes(AttributeVisitor& visitor) override;+ ~AttributeAdapter() override;+OPENVINO_RTTI("AttributeAdapter<ParameterVector>");protected:diff --git a/src/core/include/openvino/op/result.hpp b/src/core/include/openvino/op/result.hppindex cabea1e452f..fa8cdb83fbe 100644--- a/src/core/include/openvino/op/result.hpp+++ b/src/core/include/openvino/op/result.hpp@@ -103,6 +103,7 @@ public:bool visit_attributes(AttributeVisitor& visitor) override;OPENVINO_RTTI("AttributeAdapter<ResultVector>");+ ~AttributeAdapter() override;protected:ResultVector& m_ref;diff --git a/src/core/include/openvino/op/reverse.hpp b/src/core/include/openvino/op/reverse.hppindex 1e0741df0d4..2da433fdcab 100644--- a/src/core/include/openvino/op/reverse.hpp+++ b/src/core/include/openvino/op/reverse.hpp@@ -65,6 +65,7 @@ template <>class OPENVINO_API AttributeAdapter<op::v1::Reverse::Mode> : public EnumAttributeAdapterBase<op::v1::Reverse::Mode> {public:AttributeAdapter(op::v1::Reverse::Mode& value) : EnumAttributeAdapterBase<op::v1::Reverse::Mode>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::op::v1::Reverse::Mode>");};diff --git a/src/core/include/openvino/op/roi_align.hpp b/src/core/include/openvino/op/roi_align.hppindex 1e5b6f76675..c2ce90a489f 100644--- a/src/core/include/openvino/op/roi_align.hpp+++ b/src/core/include/openvino/op/roi_align.hpp@@ -138,6 +138,7 @@ class OPENVINO_API AttributeAdapter<op::v3::ROIAlign::PoolingMode>public:AttributeAdapter(op::v3::ROIAlign::PoolingMode& value): EnumAttributeAdapterBase<op::v3::ROIAlign::PoolingMode>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::op::v3::ROIAlign::PoolingMode>");};@@ -150,6 +151,7 @@ class OPENVINO_API AttributeAdapter<op::v9::ROIAlign::PoolingMode>public:AttributeAdapter(op::v9::ROIAlign::PoolingMode& value): EnumAttributeAdapterBase<op::v9::ROIAlign::PoolingMode>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::op::v9::ROIAlign::PoolingMode>");};@@ -162,6 +164,7 @@ class OPENVINO_API AttributeAdapter<op::v9::ROIAlign::AlignedMode>public:AttributeAdapter(op::v9::ROIAlign::AlignedMode& value): EnumAttributeAdapterBase<op::v9::ROIAlign::AlignedMode>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::op::v9::ROIAlign::AlignedMode>");};diff --git a/src/core/include/openvino/op/round.hpp b/src/core/include/openvino/op/round.hppindex 741d3e3dc21..f59224e55b9 100644--- a/src/core/include/openvino/op/round.hpp+++ b/src/core/include/openvino/op/round.hpp@@ -57,6 +57,7 @@ class OPENVINO_API AttributeAdapter<op::v5::Round::RoundMode>: public EnumAttributeAdapterBase<op::v5::Round::RoundMode> {public:AttributeAdapter(op::v5::Round::RoundMode& value) : EnumAttributeAdapterBase<op::v5::Round::RoundMode>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::op::v5::Round::RoundMode>");};diff --git a/src/core/include/openvino/op/scatter_elements_update.hpp b/src/core/include/openvino/op/scatter_elements_update.hppindex 9f0c4af8c36..b7763a17879 100644--- a/src/core/include/openvino/op/scatter_elements_update.hpp+++ b/src/core/include/openvino/op/scatter_elements_update.hpp@@ -97,6 +97,7 @@ class OPENVINO_API AttributeAdapter<op::v12::ScatterElementsUpdate::Reduction>public:AttributeAdapter(op::v12::ScatterElementsUpdate::Reduction& value): EnumAttributeAdapterBase<op::v12::ScatterElementsUpdate::Reduction>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<v12::ScatterElementsUpdate::Reduction>");};diff --git a/src/core/include/openvino/op/scatter_nd_update.hpp b/src/core/include/openvino/op/scatter_nd_update.hppindex 238b3da8d29..a68c9c6243f 100644--- a/src/core/include/openvino/op/scatter_nd_update.hpp+++ b/src/core/include/openvino/op/scatter_nd_update.hpp@@ -77,6 +77,7 @@ class OPENVINO_API AttributeAdapter<op::v15::ScatterNDUpdate::Reduction>public:AttributeAdapter(op::v15::ScatterNDUpdate::Reduction& value): EnumAttributeAdapterBase<op::v15::ScatterNDUpdate::Reduction>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<v15::ScatterNDUpdate::Reduction>");};diff --git a/src/core/include/openvino/op/space_to_depth.hpp b/src/core/include/openvino/op/space_to_depth.hppindex 9ff7d12a542..e6e0f6616a2 100644--- a/src/core/include/openvino/op/space_to_depth.hpp+++ b/src/core/include/openvino/op/space_to_depth.hpp@@ -74,6 +74,7 @@ class OPENVINO_API AttributeAdapter<op::v0::SpaceToDepth::SpaceToDepthMode>public:AttributeAdapter(op::v0::SpaceToDepth::SpaceToDepthMode& value): EnumAttributeAdapterBase<op::v0::SpaceToDepth::SpaceToDepthMode>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::op::v0::SpaceToDepth::SpaceToDepthMode>");};diff --git a/src/core/include/openvino/op/util/attr_types.hpp b/src/core/include/openvino/op/util/attr_types.hppindex 2a33234e1fa..125e33ff4a2 100644--- a/src/core/include/openvino/op/util/attr_types.hpp+++ b/src/core/include/openvino/op/util/attr_types.hpp@@ -221,6 +221,7 @@ template <>class OPENVINO_API AttributeAdapter<op::PadMode> : public EnumAttributeAdapterBase<op::PadMode> {public:AttributeAdapter(op::PadMode& value) : EnumAttributeAdapterBase<op::PadMode>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<PadMode>");};@@ -229,6 +230,7 @@ template <>class OPENVINO_API AttributeAdapter<op::FillMode> : public EnumAttributeAdapterBase<op::FillMode> {public:AttributeAdapter(op::FillMode& value) : EnumAttributeAdapterBase<op::FillMode>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<FillMode>");};@@ -237,6 +239,7 @@ template <>class OPENVINO_API AttributeAdapter<op::PadType> : public EnumAttributeAdapterBase<op::PadType> {public:AttributeAdapter(op::PadType& value) : EnumAttributeAdapterBase<op::PadType>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<PadType>");};@@ -245,6 +248,7 @@ template <>class OPENVINO_API AttributeAdapter<op::RoundingType> : public EnumAttributeAdapterBase<op::RoundingType> {public:AttributeAdapter(op::RoundingType& value) : EnumAttributeAdapterBase<op::RoundingType>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<RoundingType>");};@@ -253,6 +257,7 @@ template <>class OPENVINO_API AttributeAdapter<op::AutoBroadcastType> : public EnumAttributeAdapterBase<op::AutoBroadcastType> {public:AttributeAdapter(op::AutoBroadcastType& value) : EnumAttributeAdapterBase<op::AutoBroadcastType>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<AutoBroadcastType>");};@@ -261,6 +266,7 @@ template <>class OPENVINO_API AttributeAdapter<op::BroadcastType> : public EnumAttributeAdapterBase<op::BroadcastType> {public:AttributeAdapter(op::BroadcastType& value) : EnumAttributeAdapterBase<op::BroadcastType>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<BroadcastType>");};@@ -269,6 +275,7 @@ template <>class OPENVINO_API AttributeAdapter<op::EpsMode> : public EnumAttributeAdapterBase<op::EpsMode> {public:AttributeAdapter(op::EpsMode& value) : EnumAttributeAdapterBase<op::EpsMode>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<EpsMode>");};@@ -277,6 +284,7 @@ template <>class OPENVINO_API AttributeAdapter<op::TopKSortType> : public EnumAttributeAdapterBase<op::TopKSortType> {public:AttributeAdapter(op::TopKSortType& value) : EnumAttributeAdapterBase<op::TopKSortType>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<TopKSortType>");};@@ -285,6 +293,7 @@ template <>class OPENVINO_API AttributeAdapter<op::TopKMode> : public EnumAttributeAdapterBase<op::TopKMode> {public:AttributeAdapter(op::TopKMode& value) : EnumAttributeAdapterBase<op::TopKMode>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<TopKMode>");};@@ -293,6 +302,7 @@ template <>class OPENVINO_API AttributeAdapter<op::PhiloxAlignment> : public EnumAttributeAdapterBase<op::PhiloxAlignment> {public:AttributeAdapter(op::PhiloxAlignment& value) : EnumAttributeAdapterBase<op::PhiloxAlignment>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<PhiloxAlignment>");};@@ -301,6 +311,7 @@ template <>class OPENVINO_API AttributeAdapter<op::AutoBroadcastSpec> : public VisitorAdapter {public:AttributeAdapter(op::AutoBroadcastSpec& value) : m_ref(value) {}+ ~AttributeAdapter() override;bool visit_attributes(AttributeVisitor& visitor) override;OPENVINO_RTTI("AttributeAdapter<AutoBroadcastSpec>");@@ -313,6 +324,7 @@ template <>class OPENVINO_API AttributeAdapter<op::BroadcastModeSpec> : public VisitorAdapter {public:AttributeAdapter(op::BroadcastModeSpec& value) : m_ref(value) {}+ ~AttributeAdapter() override;bool visit_attributes(AttributeVisitor& visitor) override;OPENVINO_RTTI("AttributeAdapter<BroadcastModeSpec>");@@ -327,6 +339,7 @@ class OPENVINO_API AttributeAdapter<op::RecurrentSequenceDirection>public:AttributeAdapter(op::RecurrentSequenceDirection& value): EnumAttributeAdapterBase<op::RecurrentSequenceDirection>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<RecurrentSequenceDirection>");};diff --git a/src/core/include/openvino/op/util/embeddingbag_offsets_base.hpp b/src/core/include/openvino/op/util/embeddingbag_offsets_base.hppindex dbc81d04029..663a9466e64 100644--- a/src/core/include/openvino/op/util/embeddingbag_offsets_base.hpp+++ b/src/core/include/openvino/op/util/embeddingbag_offsets_base.hpp@@ -92,6 +92,7 @@ class OPENVINO_API AttributeAdapter<op::util::EmbeddingBagOffsetsBase::Reductionpublic:AttributeAdapter(op::util::EmbeddingBagOffsetsBase::Reduction& value): EnumAttributeAdapterBase<op::util::EmbeddingBagOffsetsBase::Reduction>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::op::util::EmbeddingBagOffsetsBase::Reduction>");};diff --git a/src/core/include/openvino/op/util/embeddingbag_packed_base.hpp b/src/core/include/openvino/op/util/embeddingbag_packed_base.hppindex ad546233237..6e5d3212b7e 100644--- a/src/core/include/openvino/op/util/embeddingbag_packed_base.hpp+++ b/src/core/include/openvino/op/util/embeddingbag_packed_base.hpp@@ -67,6 +67,7 @@ class OPENVINO_API AttributeAdapter<op::util::EmbeddingBagPackedBase::Reduction>public:AttributeAdapter(op::util::EmbeddingBagPackedBase::Reduction& value): EnumAttributeAdapterBase<op::util::EmbeddingBagPackedBase::Reduction>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::op::util::EmbeddingBagPackedBase::Reduction>");};diff --git a/src/core/include/openvino/op/util/framework_node.hpp b/src/core/include/openvino/op/util/framework_node.hppindex 570ba52f88a..83491b9a9fd 100644--- a/src/core/include/openvino/op/util/framework_node.hpp+++ b/src/core/include/openvino/op/util/framework_node.hpp@@ -120,6 +120,7 @@ class OPENVINO_API AttributeAdapter<ov::op::util::FrameworkNodeAttrs>: public DirectValueAccessor<ov::op::util::FrameworkNodeAttrs> {public:AttributeAdapter(ov::op::util::FrameworkNodeAttrs& value);+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<FrameworkNodeAttr>");};diff --git a/src/core/include/openvino/op/util/interpolate_base.hpp b/src/core/include/openvino/op/util/interpolate_base.hppindex 4361ddec5eb..af8c7014279 100644--- a/src/core/include/openvino/op/util/interpolate_base.hpp+++ b/src/core/include/openvino/op/util/interpolate_base.hpp@@ -155,6 +155,7 @@ class OPENVINO_API AttributeAdapter<op::util::InterpolateBase::InterpolateMode>public:AttributeAdapter(op::util::InterpolateBase::InterpolateMode& value): EnumAttributeAdapterBase<op::util::InterpolateBase::InterpolateMode>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::op::util::InterpolateBase::InterpolateMode>");};@@ -165,6 +166,7 @@ class OPENVINO_API AttributeAdapter<op::util::InterpolateBase::CoordinateTransfopublic:AttributeAdapter(op::util::InterpolateBase::CoordinateTransformMode& value): EnumAttributeAdapterBase<op::util::InterpolateBase::CoordinateTransformMode>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::op::util::InterpolateBase::CoordinateTransformMode>");};@@ -175,6 +177,7 @@ class OPENVINO_API AttributeAdapter<op::util::InterpolateBase::NearestMode>public:AttributeAdapter(op::util::InterpolateBase::NearestMode& value): EnumAttributeAdapterBase<op::util::InterpolateBase::NearestMode>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::op::util::InterpolateBase::NearestMode>");};@@ -185,6 +188,7 @@ class OPENVINO_API AttributeAdapter<op::util::InterpolateBase::ShapeCalcMode>public:AttributeAdapter(op::util::InterpolateBase::ShapeCalcMode& value): EnumAttributeAdapterBase<op::util::InterpolateBase::ShapeCalcMode>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::op::util::InterpolateBase::ShapeCalcMode>");};diff --git a/src/core/include/openvino/op/util/multi_subgraph_base.hpp b/src/core/include/openvino/op/util/multi_subgraph_base.hppindex 71ba0ebe4f6..5fcb1e2ff52 100644--- a/src/core/include/openvino/op/util/multi_subgraph_base.hpp+++ b/src/core/include/openvino/op/util/multi_subgraph_base.hpp@@ -335,6 +335,7 @@ class OPENVINO_API AttributeAdapter<std::vector<std::shared_ptr<op::util::MultiSpublic:AttributeAdapter(std::vector<std::shared_ptr<op::util::MultiSubGraphOp::InputDescription>>& value): DirectValueAccessor<std::vector<std::shared_ptr<op::util::MultiSubGraphOp::InputDescription>>>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::vector<std::shared_ptr<ov::op::util::MultiSubGraphOp::InputDescription>>>")};@@ -345,6 +346,7 @@ class OPENVINO_API AttributeAdapter<std::vector<std::shared_ptr<op::util::MultiSpublic:AttributeAdapter(std::vector<std::shared_ptr<op::util::MultiSubGraphOp::OutputDescription>>& value): DirectValueAccessor<std::vector<std::shared_ptr<op::util::MultiSubGraphOp::OutputDescription>>>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::vector<std::shared_ptr<ov::op::util::MultiSubGraphOp::OutputDescription>>>");};diff --git a/src/core/include/openvino/op/util/multiclass_nms_base.hpp b/src/core/include/openvino/op/util/multiclass_nms_base.hppindex 2297512c74e..079207f0e69 100644--- a/src/core/include/openvino/op/util/multiclass_nms_base.hpp+++ b/src/core/include/openvino/op/util/multiclass_nms_base.hpp@@ -87,6 +87,7 @@ class OPENVINO_API AttributeAdapter<op::util::MulticlassNmsBase::SortResultType>public:AttributeAdapter(op::util::MulticlassNmsBase::SortResultType& value): EnumAttributeAdapterBase<op::util::MulticlassNmsBase::SortResultType>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<ov::op::util::MulticlassNmsBase::SortResultType>");};diff --git a/src/core/include/openvino/op/util/variable.hpp b/src/core/include/openvino/op/util/variable.hppindex d8954b6d874..ea863d92173 100644--- a/src/core/include/openvino/op/util/variable.hpp+++ b/src/core/include/openvino/op/util/variable.hpp@@ -59,6 +59,7 @@ class OPENVINO_API AttributeAdapter<std::shared_ptr<op::util::Variable>>public:explicit AttributeAdapter(std::shared_ptr<op::util::Variable>& value): DirectValueAccessor<std::shared_ptr<op::util::Variable>>(value) {}+ ~AttributeAdapter() override;OPENVINO_RTTI("AttributeAdapter<std::shared_ptr<ov::op::util::Variable>>");};diff --git a/src/core/src/attribute_adapter.cpp b/src/core/src/attribute_adapter.cppnew file mode 100644index 00000000000..261b17ae95e--- /dev/null+++ b/src/core/src/attribute_adapter.cpp@@ -0,0 +1,40 @@+// Copyright (C) 2025 Intel Corporation+// SPDX-License-Identifier: Apache-2.0+//++#include "openvino/core/attribute_adapter.hpp"++namespace ov {++ValueAccessor<void>::~ValueAccessor() = default;++AttributeAdapter<float>::~AttributeAdapter() = default;+AttributeAdapter<double>::~AttributeAdapter() = default;+AttributeAdapter<std::string>::~AttributeAdapter() = default;+AttributeAdapter<bool>::~AttributeAdapter() = default;+AttributeAdapter<int8_t>::~AttributeAdapter() = default;+AttributeAdapter<int16_t>::~AttributeAdapter() = default;+AttributeAdapter<int32_t>::~AttributeAdapter() = default;+AttributeAdapter<int64_t>::~AttributeAdapter() = default;+AttributeAdapter<uint8_t>::~AttributeAdapter() = default;+AttributeAdapter<uint16_t>::~AttributeAdapter() = default;+AttributeAdapter<uint32_t>::~AttributeAdapter() = default;+AttributeAdapter<uint64_t>::~AttributeAdapter() = default;+#if defined(__APPLE__) || defined(__EMSCRIPTEN__)+AttributeAdapter<size_t>::~AttributeAdapter() = default;+AttributeAdapter<std::vector<size_t>>::~AttributeAdapter() = default;+#endif+AttributeAdapter<std::vector<int8_t>>::~AttributeAdapter() = default;+AttributeAdapter<std::vector<int16_t>>::~AttributeAdapter() = default;+AttributeAdapter<std::vector<int32_t>>::~AttributeAdapter() = default;+AttributeAdapter<std::vector<int64_t>>::~AttributeAdapter() = default;+AttributeAdapter<std::vector<uint8_t>>::~AttributeAdapter() = default;+AttributeAdapter<std::vector<uint16_t>>::~AttributeAdapter() = default;+AttributeAdapter<std::vector<uint32_t>>::~AttributeAdapter() = default;+AttributeAdapter<std::vector<uint64_t>>::~AttributeAdapter() = default;+AttributeAdapter<std::vector<float>>::~AttributeAdapter() = default;+AttributeAdapter<std::vector<double>>::~AttributeAdapter() = default;+AttributeAdapter<std::vector<std::string>>::~AttributeAdapter() = default;+AttributeAdapter<std::set<std::string>>::~AttributeAdapter() = default;++} // namespace ovdiff --git a/src/core/src/attribute_visitor.cpp b/src/core/src/attribute_visitor.cppindex 991e549fa83..2f2d85c408f 100644--- a/src/core/src/attribute_visitor.cpp+++ b/src/core/src/attribute_visitor.cpp@@ -10,8 +10,6 @@using namespace std;-ov::ValueAccessor<void>::~ValueAccessor() = default;-ov::AttributeVisitor::~AttributeVisitor() = default;void ov::AttributeVisitor::start_structure(const string& name) {diff --git a/src/core/src/axis_set.cpp b/src/core/src/axis_set.cppindex 67a3c43ec54..6d4c839112b 100644--- a/src/core/src/axis_set.cpp+++ b/src/core/src/axis_set.cpp@@ -55,3 +55,5 @@ void ov::AttributeAdapter<ov::AxisSet>::set(const std::vector<int64_t>& value) {}m_buffer_valid = false;}++ov::AttributeAdapter<ov::AxisSet>::~AttributeAdapter() = default;diff --git a/src/core/src/axis_vector.cpp b/src/core/src/axis_vector.cppindex d2bc31a300d..25576831485 100644--- a/src/core/src/axis_vector.cpp+++ b/src/core/src/axis_vector.cpp@@ -34,3 +34,5 @@ ov::AxisVector& ov::AxisVector::operator=(AxisVector&& v) noexcept {static_cast<std::vector<size_t>*>(this)->operator=(std::move(v));return *this;}++ov::AttributeAdapter<ov::AxisVector>::~AttributeAdapter() = default;diff --git a/src/core/src/coordinate.cpp b/src/core/src/coordinate.cppindex 6f44875a926..e2779bebd8c 100644--- a/src/core/src/coordinate.cpp+++ b/src/core/src/coordinate.cpp@@ -37,3 +37,5 @@ ov::Coordinate& ov::Coordinate::operator=(Coordinate&& v) noexcept {static_cast<std::vector<size_t>*>(this)->operator=(std::move(v));return *this;}++ov::AttributeAdapter<ov::Coordinate>::~AttributeAdapter() = default;diff --git a/src/core/src/coordinate_diff.cpp b/src/core/src/coordinate_diff.cppindex 85c292ff36b..b833f6f569e 100644--- a/src/core/src/coordinate_diff.cpp+++ b/src/core/src/coordinate_diff.cpp@@ -36,3 +36,5 @@ ov::CoordinateDiff& ov::CoordinateDiff::operator=(CoordinateDiff&& v) noexcept {static_cast<std::vector<std::ptrdiff_t>*>(this)->operator=(std::move(v));return *this;}++ov::AttributeAdapter<ov::CoordinateDiff>::~AttributeAdapter() = default;diff --git a/src/core/src/dimension.cpp b/src/core/src/dimension.cppindex b29876ff711..f0cbceba3b5 100644--- a/src/core/src/dimension.cpp+++ b/src/core/src/dimension.cpp@@ -248,3 +248,5 @@ std::shared_ptr<ov::Symbol> Dimension::get_symbol() const {void Dimension::set_symbol(const std::shared_ptr<ov::Symbol>& s) {m_symbol = s;}++AttributeAdapter<Dimension>::~AttributeAdapter() = default;diff --git a/src/core/src/layout.cpp b/src/core/src/layout.cppindex 9076c8a2617..d1d8f4a3038 100644--- a/src/core/src/layout.cpp+++ b/src/core/src/layout.cpp@@ -631,6 +631,8 @@ void AttributeAdapter<ov::Layout>::set(const std::string& value) {m_ref = Layout(value);}+AttributeAdapter<Layout>::~AttributeAdapter() = default;+bool LayoutAttribute::visit_attributes(AttributeVisitor& visitor) {std::string layout_str = value.to_string();visitor.on_attribute("layout", layout_str);diff --git a/src/core/src/model.cpp b/src/core/src/model.cppindex 44ac9c9177d..86580f18e37 100644--- a/src/core/src/model.cpp+++ b/src/core/src/model.cpp@@ -1184,3 +1184,5 @@ void ov::set_batch(const std::shared_ptr<ov::Model>& f, ov::Dimension batch_sizeOPENVINO_ASSERT(false, stream.str());}}++ov::AttributeAdapter<std::shared_ptr<ov::Model>>::~AttributeAdapter() = default;diff --git a/src/core/src/node.cpp b/src/core/src/node.cppindex ad82378f172..6ce0cca4ce8 100644--- a/src/core/src/node.cpp+++ b/src/core/src/node.cpp@@ -784,6 +784,8 @@ bool AttributeAdapter<std::shared_ptr<Node>>::visit_attributes(AttributeVisitor&return true;}+AttributeAdapter<std::shared_ptr<ov::Node>>::~AttributeAdapter() = default;+AttributeAdapter<NodeVector>::AttributeAdapter(NodeVector& ref) : m_ref(ref) {}bool AttributeAdapter<NodeVector>::visit_attributes(AttributeVisitor& visitor) {@@ -807,4 +809,6 @@ bool AttributeAdapter<NodeVector>::visit_attributes(AttributeVisitor& visitor) {}return true;}++AttributeAdapter<ov::NodeVector>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/binary_convolution.cpp b/src/core/src/op/binary_convolution.cppindex ae5214951f9..1efb83ba330 100644--- a/src/core/src/op/binary_convolution.cpp+++ b/src/core/src/op/binary_convolution.cpp@@ -98,6 +98,8 @@ EnumNames<op::v1::BinaryConvolution::BinaryConvolutionMode>::get() {{{"xnor-popcount", op::v1::BinaryConvolution::BinaryConvolutionMode::XNOR_POPCOUNT}});return enum_names;}++AttributeAdapter<op::v1::BinaryConvolution::BinaryConvolutionMode>::~AttributeAdapter() = default;} // namespace ovstd::ostream& ov::operator<<(std::ostream& s, const ov::op::v1::BinaryConvolution::BinaryConvolutionMode& type) {diff --git a/src/core/src/op/depth_to_space.cpp b/src/core/src/op/depth_to_space.cppindex 1d96b815ca4..d6f0316dbd7 100644--- a/src/core/src/op/depth_to_space.cpp+++ b/src/core/src/op/depth_to_space.cpp@@ -90,4 +90,6 @@ EnumNames<op::v0::DepthToSpace::DepthToSpaceMode>::get() {{"depth_first", op::v0::DepthToSpace::DepthToSpaceMode::DEPTH_FIRST}});return enum_names;}++AttributeAdapter<op::v0::DepthToSpace::DepthToSpaceMode>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/gelu.cpp b/src/core/src/op/gelu.cppindex fed2a1b596b..73b220bc481 100644--- a/src/core/src/op/gelu.cpp+++ b/src/core/src/op/gelu.cpp@@ -141,4 +141,6 @@ OPENVINO_API EnumNames<op::GeluApproximationMode>& EnumNames<op::GeluApproximatistd::ostream& op::operator<<(std::ostream& s, const op::GeluApproximationMode& type) {return s << as_string(type);}++AttributeAdapter<op::GeluApproximationMode>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/grid_sample.cpp b/src/core/src/op/grid_sample.cppindex 2cd4c54a9ce..e5825d2ce75 100644--- a/src/core/src/op/grid_sample.cpp+++ b/src/core/src/op/grid_sample.cpp@@ -148,4 +148,7 @@ OPENVINO_API EnumNames<op::v9::GridSample::PaddingMode>& EnumNames<op::v9::GridS{"reflection", op::v9::GridSample::PaddingMode::REFLECTION}});return enum_names;}++AttributeAdapter<op::v9::GridSample::InterpolationMode>::~AttributeAdapter() = default;+AttributeAdapter<op::v9::GridSample::PaddingMode>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/interpolate.cpp b/src/core/src/op/interpolate.cppindex b41ecc13caf..472889fc866 100644--- a/src/core/src/op/interpolate.cpp+++ b/src/core/src/op/interpolate.cpp@@ -311,4 +311,6 @@ void op::v11::Interpolate::validate_and_infer_types() {shape_infer(this, input_shapes, m_attrs.pads_begin, m_attrs.pads_end, make_tensor_accessor());set_output_type(0, get_input_element_type(0), output_shapes[0]);}++AttributeAdapter<op::v0::Interpolate::InterpolateMode>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/loop.cpp b/src/core/src/op/loop.cppindex e654dfff050..04cd3bdbb5c 100644--- a/src/core/src/op/loop.cpp+++ b/src/core/src/op/loop.cpp@@ -393,4 +393,6 @@ Loop::Loop(const op::v5::Loop& other) : SubGraphOp() {}} // namespace v5} // namespace op++AttributeAdapter<op::v5::Loop::SpecialBodyPorts>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/lstm_cell.cpp b/src/core/src/op/lstm_cell.cppindex 9f928214c33..a324c17d2c7 100644--- a/src/core/src/op/lstm_cell.cpp+++ b/src/core/src/op/lstm_cell.cpp@@ -233,6 +233,8 @@ std::shared_ptr<Node> op::v0::LSTMCell::clone_with_new_inputs(const OutputVector}}+AttributeAdapter<op::LSTMWeightsFormat>::~AttributeAdapter() = default;+template <>OPENVINO_API EnumNames<op::LSTMWeightsFormat>& EnumNames<op::LSTMWeightsFormat>::get() {static auto enum_names = EnumNames<op::LSTMWeightsFormat>("op::LSTMWeightsFormat",diff --git a/src/core/src/op/matrix_nms.cpp b/src/core/src/op/matrix_nms.cppindex 5f09f55f392..0ab1f8b6ed3 100644--- a/src/core/src/op/matrix_nms.cpp+++ b/src/core/src/op/matrix_nms.cpp@@ -117,4 +117,7 @@ OPENVINO_API EnumNames<op::v8::MatrixNms::SortResultType>& EnumNames<op::v8::Mat{"none", op::v8::MatrixNms::SortResultType::NONE}});return enum_names;}++AttributeAdapter<op::v8::MatrixNms::DecayFunction>::~AttributeAdapter() = default;+AttributeAdapter<op::v8::MatrixNms::SortResultType>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/mvn.cpp b/src/core/src/op/mvn.cppindex 25d1420fa4c..9dd88057265 100644--- a/src/core/src/op/mvn.cpp+++ b/src/core/src/op/mvn.cpp@@ -73,6 +73,8 @@ OPENVINO_API EnumNames<ov::op::MVNEpsMode>& EnumNames<ov::op::MVNEpsMode>::get(){{"OUTSIDE_SQRT", ov::op::MVNEpsMode::OUTSIDE_SQRT}, {"INSIDE_SQRT", ov::op::MVNEpsMode::INSIDE_SQRT}});return enum_names;}++AttributeAdapter<op::MVNEpsMode>::~AttributeAdapter() = default;} // namespace ovstd::ostream& ov::op::operator<<(std::ostream& s, const ov::op::MVNEpsMode& type) {diff --git a/src/core/src/op/non_max_suppression.cpp b/src/core/src/op/non_max_suppression.cppindex c2212fc55f1..f4db874a9a0 100644--- a/src/core/src/op/non_max_suppression.cpp+++ b/src/core/src/op/non_max_suppression.cpp@@ -102,6 +102,8 @@ std::ostream& operator<<(std::ostream& s, const op::v1::NonMaxSuppression::BoxEnreturn s << as_string(type);}+AttributeAdapter<op::v1::NonMaxSuppression::BoxEncodingType>::~AttributeAdapter() = default;+// ------------------------------ V3 ------------------------------op::v3::NonMaxSuppression::NonMaxSuppression(const Output<Node>& boxes,const Output<Node>& scores,@@ -198,6 +200,8 @@ std::ostream& operator<<(std::ostream& s, const op::v3::NonMaxSuppression::BoxEnreturn s << as_string(type);}+AttributeAdapter<op::v3::NonMaxSuppression::BoxEncodingType>::~AttributeAdapter() = default;+// ------------------------------ V4 ------------------------------op::v4::NonMaxSuppression::NonMaxSuppression(const Output<Node>& boxes,const Output<Node>& scores,@@ -766,4 +770,7 @@ EnumNames<op::v9::NonMaxSuppression::BoxEncodingType>::get() {{"center", op::v9::NonMaxSuppression::BoxEncodingType::CENTER}});return enum_names;}++AttributeAdapter<op::v5::NonMaxSuppression::BoxEncodingType>::~AttributeAdapter() = default;+AttributeAdapter<op::v9::NonMaxSuppression::BoxEncodingType>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/parameter.cpp b/src/core/src/op/parameter.cppindex 29e8a43069d..e4959ba4dc8 100644--- a/src/core/src/op/parameter.cpp+++ b/src/core/src/op/parameter.cpp@@ -68,6 +68,8 @@ void op::v0::Parameter::set_partial_shape(const PartialShape& partial_shape) {AttributeAdapter<ParameterVector>::AttributeAdapter(ParameterVector& ref) : m_ref(ref) {}+AttributeAdapter<ParameterVector>::~AttributeAdapter() = default;+bool AttributeAdapter<ParameterVector>::visit_attributes(AttributeVisitor& visitor) {size_t size = m_ref.size();visitor.on_attribute("size", size);diff --git a/src/core/src/op/result.cpp b/src/core/src/op/result.cppindex 4bf61929d33..fec69a566cd 100644--- a/src/core/src/op/result.cpp+++ b/src/core/src/op/result.cpp@@ -111,4 +111,6 @@ bool AttributeAdapter<ResultVector>::visit_attributes(AttributeVisitor& visitor)}return true;}++AttributeAdapter<ResultVector>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/reverse.cpp b/src/core/src/op/reverse.cppindex 2de00262289..f9654a7a44b 100644--- a/src/core/src/op/reverse.cpp+++ b/src/core/src/op/reverse.cpp@@ -133,4 +133,6 @@ OPENVINO_API EnumNames<op::v1::Reverse::Mode>& EnumNames<op::v1::Reverse::Mode>:{{"index", op::v1::Reverse::Mode::INDEX}, {"mask", op::v1::Reverse::Mode::MASK}});return enum_names;}++AttributeAdapter<op::v1::Reverse::Mode>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/roi_align.cpp b/src/core/src/op/roi_align.cppindex 2e772b81e48..c62f08478c2 100644--- a/src/core/src/op/roi_align.cpp+++ b/src/core/src/op/roi_align.cpp@@ -150,6 +150,10 @@ std::ostream& operator<<(std::ostream& s, const op::v9::ROIAlign::AlignedMode& treturn s << as_string(type);}+AttributeAdapter<op::v3::ROIAlign::PoolingMode>::~AttributeAdapter() = default;+AttributeAdapter<op::v9::ROIAlign::PoolingMode>::~AttributeAdapter() = default;+AttributeAdapter<op::v9::ROIAlign::AlignedMode>::~AttributeAdapter() = default;+namespace op {namespace roi_align {namespace {diff --git a/src/core/src/op/round.cpp b/src/core/src/op/round.cppindex ca4ef22f849..3361cbcf359 100644--- a/src/core/src/op/round.cpp+++ b/src/core/src/op/round.cpp@@ -93,4 +93,6 @@ OPENVINO_API EnumNames<op::v5::Round::RoundMode>& EnumNames<op::v5::Round::Round{"half_away_from_zero", op::v5::Round::RoundMode::HALF_AWAY_FROM_ZERO}});return enum_names;}++AttributeAdapter<op::v5::Round::RoundMode>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/scatter_elements_update.cpp b/src/core/src/op/scatter_elements_update.cppindex f29e24a0b48..01a7cb2b8d9 100644--- a/src/core/src/op/scatter_elements_update.cpp+++ b/src/core/src/op/scatter_elements_update.cpp@@ -216,6 +216,9 @@ EnumNames<op::v12::ScatterElementsUpdate::Reduction>::get() {{"mean", op::v12::ScatterElementsUpdate::Reduction::MEAN}});return enum_names;}++AttributeAdapter<op::v12::ScatterElementsUpdate::Reduction>::~AttributeAdapter() = default;+namespace op {std::ostream& operator<<(std::ostream& s, const v12::ScatterElementsUpdate::Reduction& reduction) {return s << as_string(reduction);diff --git a/src/core/src/op/scatter_nd_update.cpp b/src/core/src/op/scatter_nd_update.cppindex ee60a79465b..a24d98d863e 100644--- a/src/core/src/op/scatter_nd_update.cpp+++ b/src/core/src/op/scatter_nd_update.cpp@@ -226,4 +226,6 @@ OPENVINO_API EnumNames<op::v15::ScatterNDUpdate::Reduction>& EnumNames<op::v15::{"max", op::v15::ScatterNDUpdate::Reduction::MAX}});return enum_names;}++AttributeAdapter<op::v15::ScatterNDUpdate::Reduction>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/space_to_depth.cpp b/src/core/src/op/space_to_depth.cppindex 01051794ca3..33ff1063918 100644--- a/src/core/src/op/space_to_depth.cpp+++ b/src/core/src/op/space_to_depth.cpp@@ -94,4 +94,6 @@ EnumNames<op::v0::SpaceToDepth::SpaceToDepthMode>::get() {{"depth_first", op::v0::SpaceToDepth::SpaceToDepthMode::DEPTH_FIRST}});return enum_names;}++AttributeAdapter<op::v0::SpaceToDepth::SpaceToDepthMode>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/util/attr_types.cpp b/src/core/src/op/util/attr_types.cppindex b6c2b8927eb..1ae6169886f 100644--- a/src/core/src/op/util/attr_types.cpp+++ b/src/core/src/op/util/attr_types.cpp@@ -195,4 +195,18 @@ op::AutoBroadcastType op::AutoBroadcastSpec::type_from_string(const std::string&std::ostream& op::operator<<(std::ostream& s, const ov::op::RecurrentSequenceDirection& direction) {return s << as_string(direction);}++AttributeAdapter<op::PadMode>::~AttributeAdapter() = default;+AttributeAdapter<op::FillMode>::~AttributeAdapter() = default;+AttributeAdapter<op::PadType>::~AttributeAdapter() = default;+AttributeAdapter<op::RoundingType>::~AttributeAdapter() = default;+AttributeAdapter<op::AutoBroadcastType>::~AttributeAdapter() = default;+AttributeAdapter<op::BroadcastType>::~AttributeAdapter() = default;+AttributeAdapter<op::EpsMode>::~AttributeAdapter() = default;+AttributeAdapter<op::TopKSortType>::~AttributeAdapter() = default;+AttributeAdapter<op::TopKMode>::~AttributeAdapter() = default;+AttributeAdapter<op::PhiloxAlignment>::~AttributeAdapter() = default;+AttributeAdapter<op::AutoBroadcastSpec>::~AttributeAdapter() = default;+AttributeAdapter<op::BroadcastModeSpec>::~AttributeAdapter() = default;+AttributeAdapter<op::RecurrentSequenceDirection>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/util/embeddingbag_offsets_base.cpp b/src/core/src/op/util/embeddingbag_offsets_base.cppindex 06fff93fd4e..b7e2cf02f3a 100644--- a/src/core/src/op/util/embeddingbag_offsets_base.cpp+++ b/src/core/src/op/util/embeddingbag_offsets_base.cpp@@ -135,4 +135,6 @@ EnumNames<op::util::EmbeddingBagOffsetsBase::Reduction>::get() {std::ostream& operator<<(std::ostream& s, const op::util::EmbeddingBagOffsetsBase::Reduction& reduction) {return s << as_string(reduction);}++AttributeAdapter<op::util::EmbeddingBagOffsetsBase::Reduction>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/util/embeddingbag_packed_base.cpp b/src/core/src/op/util/embeddingbag_packed_base.cppindex edba80b9856..360f4be338b 100644--- a/src/core/src/op/util/embeddingbag_packed_base.cpp+++ b/src/core/src/op/util/embeddingbag_packed_base.cpp@@ -84,4 +84,5 @@ EnumNames<op::util::EmbeddingBagPackedBase::Reduction>::get() {return enum_names;}+AttributeAdapter<op::util::EmbeddingBagPackedBase::Reduction>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/util/framework_node.cpp b/src/core/src/op/util/framework_node.cppindex e9faf1df292..062433742d9 100644--- a/src/core/src/op/util/framework_node.cpp+++ b/src/core/src/op/util/framework_node.cpp@@ -195,3 +195,5 @@ bool ov::op::util::FrameworkNode::visit_attributes(AttributeVisitor& visitor) {ov::AttributeAdapter<ov::op::util::FrameworkNodeAttrs>::AttributeAdapter(ov::op::util::FrameworkNodeAttrs& value): DirectValueAccessor<ov::op::util::FrameworkNodeAttrs>(value) {}++ov::AttributeAdapter<ov::op::util::FrameworkNodeAttrs>::~AttributeAdapter() = default;diff --git a/src/core/src/op/util/interpolate_base.cpp b/src/core/src/op/util/interpolate_base.cppindex 4348525c64e..8f2ae68e55d 100644--- a/src/core/src/op/util/interpolate_base.cpp+++ b/src/core/src/op/util/interpolate_base.cpp@@ -130,6 +130,11 @@ EnumNames<op::util::InterpolateBase::NearestMode>::get() {return enum_names;}+AttributeAdapter<op::util::InterpolateBase::InterpolateMode>::~AttributeAdapter() = default;+AttributeAdapter<op::util::InterpolateBase::CoordinateTransformMode>::~AttributeAdapter() = default;+AttributeAdapter<op::util::InterpolateBase::NearestMode>::~AttributeAdapter() = default;+AttributeAdapter<op::util::InterpolateBase::ShapeCalcMode>::~AttributeAdapter() = default;+std::ostream& operator<<(std::ostream& s, const op::util::InterpolateBase::InterpolateMode& type) {return s << as_string(type);}diff --git a/src/core/src/op/util/multi_subgraph_base.cpp b/src/core/src/op/util/multi_subgraph_base.cppindex 5e5f84d8ff7..74e28033d87 100644--- a/src/core/src/op/util/multi_subgraph_base.cpp+++ b/src/core/src/op/util/multi_subgraph_base.cpp@@ -187,3 +187,8 @@ ov::op::util::MultiSubGraphOp::OutputMap ov::op::util::MultiSubGraphOp::get_mappreturn outputs_map;}++ov::AttributeAdapter<+ std::vector<std::shared_ptr<ov::op::util::MultiSubGraphOp::InputDescription>>>::~AttributeAdapter() = default;+ov::AttributeAdapter<+ std::vector<std::shared_ptr<ov::op::util::MultiSubGraphOp::OutputDescription>>>::~AttributeAdapter() = default;diff --git a/src/core/src/op/util/multiclass_nms_base.cpp b/src/core/src/op/util/multiclass_nms_base.cppindex cdbf9c73309..0f559c2d4a9 100644--- a/src/core/src/op/util/multiclass_nms_base.cpp+++ b/src/core/src/op/util/multiclass_nms_base.cpp@@ -98,4 +98,6 @@ EnumNames<op::util::MulticlassNmsBase::SortResultType>::get() {{"none", op::util::MulticlassNmsBase::SortResultType::NONE}});return enum_names;}++AttributeAdapter<op::util::MulticlassNmsBase::SortResultType>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/op/util/variable.cpp b/src/core/src/op/util/variable.cppnew file mode 100644index 00000000000..db3fc5233ba--- /dev/null+++ b/src/core/src/op/util/variable.cpp@@ -0,0 +1,9 @@+// Copyright (C) 2018-2025 Intel Corporation+// SPDX-License-Identifier: Apache-2.0+//++#include "openvino/op/util/variable.hpp"++namespace ov {+AttributeAdapter<std::shared_ptr<op::util::Variable>>::~AttributeAdapter() = default;+} // namespace ovdiff --git a/src/core/src/partial_shape.cpp b/src/core/src/partial_shape.cppindex cdccc8a75da..ac121eedaf2 100644--- a/src/core/src/partial_shape.cpp+++ b/src/core/src/partial_shape.cpp@@ -376,3 +376,5 @@ ov::Dimension& ov::PartialShape::operator[](std::ptrdiff_t i) {m_shape_type = ShapeType::SHAPE_IS_UPDATED; // We can't guarantee that the shape remains static or dynamic.return m_dimensions[util::normalize_shape_index(i, m_dimensions.size())];}++ov::AttributeAdapter<ov::PartialShape>::~AttributeAdapter() = default;diff --git a/src/core/src/runtime/aligned_buffer.cpp b/src/core/src/runtime/aligned_buffer.cppindex d9a146af907..c42a0ce177f 100644--- a/src/core/src/runtime/aligned_buffer.cpp+++ b/src/core/src/runtime/aligned_buffer.cpp@@ -54,4 +54,6 @@ AlignedBuffer& AlignedBuffer::operator=(AlignedBuffer&& other) {AttributeAdapter<std::shared_ptr<ov::AlignedBuffer>>::AttributeAdapter(std::shared_ptr<ov::AlignedBuffer>& value): DirectValueAccessor<std::shared_ptr<ov::AlignedBuffer>>(value) {}++AttributeAdapter<std::shared_ptr<AlignedBuffer>>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/runtime/string_aligned_buffer.cpp b/src/core/src/runtime/string_aligned_buffer.cppindex c4a01182924..24c01c9bc68 100644--- a/src/core/src/runtime/string_aligned_buffer.cpp+++ b/src/core/src/runtime/string_aligned_buffer.cpp@@ -167,4 +167,7 @@ void AttributeAdapter<std::shared_ptr<ov::SharedStringAlignedBuffer>>::get_raw_saux_get_raw_string_by_index(m_ref, raw_string_ptr, raw_string_size, string_ind);}+AttributeAdapter<std::shared_ptr<StringAlignedBuffer>>::~AttributeAdapter() = default;+AttributeAdapter<std::shared_ptr<SharedStringAlignedBuffer>>::~AttributeAdapter() = default;+} // namespace ovdiff --git a/src/core/src/shape.cpp b/src/core/src/shape.cppindex 873401e8e4d..9da53031ca9 100644--- a/src/core/src/shape.cpp+++ b/src/core/src/shape.cpp@@ -86,4 +86,6 @@ typename Shape::reference Shape::at(std::ptrdiff_t i) {typename Shape::const_reference Shape::at(std::ptrdiff_t i) const {return std::vector<size_t>::operator[](util::normalize_shape_index(i, size()));}++AttributeAdapter<ov::Shape>::~AttributeAdapter() = default;} // namespace ovdiff --git a/src/core/src/strides.cpp b/src/core/src/strides.cppindex 4bfc729b9e4..52edb1e2b7f 100644--- a/src/core/src/strides.cpp+++ b/src/core/src/strides.cpp@@ -32,3 +32,5 @@ ov::Strides& ov::Strides::operator=(Strides&& v) noexcept {static_cast<std::vector<size_t>*>(this)->operator=(std::move(v));return *this;}++ov::AttributeAdapter<ov::Strides>::~AttributeAdapter() = default;diff --git a/src/core/src/type/element_type.cpp b/src/core/src/type/element_type.cppindex d6a92945f99..aab444bc711 100644--- a/src/core/src/type/element_type.cpp+++ b/src/core/src/type/element_type.cpp@@ -342,4 +342,8 @@ const std::string& AttributeAdapter<element::Type>::get() {void AttributeAdapter<element::Type>::set(const std::string& value) {m_ref = as_enum<element::Type_t>(value);}++AttributeAdapter<ov::element::Type_t>::~AttributeAdapter() = default;+AttributeAdapter<ov::element::Type>::~AttributeAdapter() = default;+AttributeAdapter<ov::element::TypeVector>::~AttributeAdapter() = default;} // namespace ov