diff --git a/src/common/low_precision_transformations/include/low_precision/add.hpp b/src/common/low_precision_transformations/include/low_precision/add.hpp index c71e2456a1cd94..ce90e1444a7a33 100644 --- a/src/common/low_precision_transformations/include/low_precision/add.hpp +++ b/src/common/low_precision_transformations/include/low_precision/add.hpp @@ -22,7 +22,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API AddTransformation : public EltwiseBaseTransformation { public: - OPENVINO_RTTI("AddTransformation", "0"); + OPENVINO_RTTI("AddTransformation", "0", EltwiseBaseTransformation); AddTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr layer) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/align_quantization_intervals.hpp b/src/common/low_precision_transformations/include/low_precision/align_quantization_intervals.hpp index 2caf346bfc5da6..3e40f33593a8b3 100644 --- a/src/common/low_precision_transformations/include/low_precision/align_quantization_intervals.hpp +++ b/src/common/low_precision_transformations/include/low_precision/align_quantization_intervals.hpp @@ -30,7 +30,7 @@ class LP_TRANSFORMATIONS_API AlignQuantizationIntervals; */ class ov::pass::low_precision::AlignQuantizationIntervals : public ov::pass::ModelPass { public: - OPENVINO_RTTI("AlignQuantizationIntervals", "0"); + OPENVINO_RTTI("AlignQuantizationIntervals", "0", ov::pass::ModelPass); AlignQuantizationIntervals(const std::vector& defaultPrecisions = ov::pass::low_precision::precision_set::get_int8_support()); bool run_on_model(const std::shared_ptr& m) override; private: diff --git a/src/common/low_precision_transformations/include/low_precision/align_quantization_parameters.hpp b/src/common/low_precision_transformations/include/low_precision/align_quantization_parameters.hpp index 89c9bf59747860..8e6cb4f1cc9915 100644 --- a/src/common/low_precision_transformations/include/low_precision/align_quantization_parameters.hpp +++ b/src/common/low_precision_transformations/include/low_precision/align_quantization_parameters.hpp @@ -31,7 +31,7 @@ class LP_TRANSFORMATIONS_API AlignQuantizationParameters; */ class ov::pass::low_precision::AlignQuantizationParameters : public ov::pass::ModelPass { public: - OPENVINO_RTTI("AlignQuantizationParameters", "0"); + OPENVINO_RTTI("AlignQuantizationParameters", "0", ov::pass::ModelPass); AlignQuantizationParameters(const std::vector defaultPrecisions = ov::pass::low_precision::precision_set::get_int8_support()); bool run_on_model(const std::shared_ptr& m) override; private: diff --git a/src/common/low_precision_transformations/include/low_precision/assign_and_read_value.hpp b/src/common/low_precision_transformations/include/low_precision/assign_and_read_value.hpp index a5e299e472066c..c351b8bb859a45 100644 --- a/src/common/low_precision_transformations/include/low_precision/assign_and_read_value.hpp +++ b/src/common/low_precision_transformations/include/low_precision/assign_and_read_value.hpp @@ -13,7 +13,7 @@ namespace low_precision { class LP_TRANSFORMATIONS_API AssignAndReadValueTransformation : public LayerTransformation { public: - OPENVINO_RTTI("AssignAndReadValueTransformation", "0"); + OPENVINO_RTTI("AssignAndReadValueTransformation", "0", LayerTransformation); AssignAndReadValueTransformation(const std::shared_ptr model, const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher& m) override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr op) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/avg_pool.hpp b/src/common/low_precision_transformations/include/low_precision/avg_pool.hpp index 43138351cf9957..4806d94187c694 100644 --- a/src/common/low_precision_transformations/include/low_precision/avg_pool.hpp +++ b/src/common/low_precision_transformations/include/low_precision/avg_pool.hpp @@ -21,7 +21,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API AvgPoolTransformation : public LayerTransformation { public: - OPENVINO_RTTI("AvgPoolTransformation", "0"); + OPENVINO_RTTI("AvgPoolTransformation", "0", LayerTransformation); AvgPoolTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool isPrecisionPreserved(std::shared_ptr layer) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/base_matcher_pass.hpp b/src/common/low_precision_transformations/include/low_precision/base_matcher_pass.hpp index f3a217e9d25cab..63f69b9e258d51 100644 --- a/src/common/low_precision_transformations/include/low_precision/base_matcher_pass.hpp +++ b/src/common/low_precision_transformations/include/low_precision/base_matcher_pass.hpp @@ -19,6 +19,7 @@ class LP_TRANSFORMATIONS_API BaseMatcherPass; class LP_TRANSFORMATIONS_API ov::pass::low_precision::BaseMatcherPass : public ov::pass::MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("low_precision::BaseMatcherPass"); BaseMatcherPass(const AttributeParameters& params = AttributeParameters()); AttributeParameters params; }; diff --git a/src/common/low_precision_transformations/include/low_precision/batch_to_space.hpp b/src/common/low_precision_transformations/include/low_precision/batch_to_space.hpp index 0d198565dff23f..7859a29ec3a046 100644 --- a/src/common/low_precision_transformations/include/low_precision/batch_to_space.hpp +++ b/src/common/low_precision_transformations/include/low_precision/batch_to_space.hpp @@ -22,7 +22,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API BatchToSpaceTransformation : public LayerTransformation { public: - OPENVINO_RTTI("BatchToSpaceTransformation", "0"); + OPENVINO_RTTI("BatchToSpaceTransformation", "0", LayerTransformation); BatchToSpaceTransformation(const Params& params = Params()); bool canBeTransformed(const TransformationContext& context, std::shared_ptr op) const override; bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; diff --git a/src/common/low_precision_transformations/include/low_precision/broadcast.hpp b/src/common/low_precision_transformations/include/low_precision/broadcast.hpp index 39ba4052535c29..05f7cadb88e888 100644 --- a/src/common/low_precision_transformations/include/low_precision/broadcast.hpp +++ b/src/common/low_precision_transformations/include/low_precision/broadcast.hpp @@ -20,7 +20,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API BroadcastTransformation : public TransparentBaseTransformation { public: - OPENVINO_RTTI("BroadcastTransformation", "0"); + OPENVINO_RTTI("BroadcastTransformation", "0", TransparentBaseTransformation); BroadcastTransformation(const Params& params = Params()); bool canBeTransformed(const TransformationContext& context, std::shared_ptr layer) const override; }; diff --git a/src/common/low_precision_transformations/include/low_precision/clamp.hpp b/src/common/low_precision_transformations/include/low_precision/clamp.hpp index 0aa2ab3bd8259e..237b956238e809 100644 --- a/src/common/low_precision_transformations/include/low_precision/clamp.hpp +++ b/src/common/low_precision_transformations/include/low_precision/clamp.hpp @@ -22,7 +22,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API ClampTransformation : public LayerTransformation { public: - OPENVINO_RTTI("ClampTransformation", "0"); + OPENVINO_RTTI("ClampTransformation", "0", LayerTransformation); ClampTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher& m) override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr op) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/concat.hpp b/src/common/low_precision_transformations/include/low_precision/concat.hpp index c178cfe82ecd8a..9d5ef8fc84f1fe 100644 --- a/src/common/low_precision_transformations/include/low_precision/concat.hpp +++ b/src/common/low_precision_transformations/include/low_precision/concat.hpp @@ -29,7 +29,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API ConcatTransformation : public LayerTransformation { public: - OPENVINO_RTTI("ConcatTransformation", "0"); + OPENVINO_RTTI("ConcatTransformation", "0", LayerTransformation); ConcatTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool isPrecisionPreserved(std::shared_ptr layer) const noexcept override; diff --git a/src/common/low_precision_transformations/include/low_precision/convert.hpp b/src/common/low_precision_transformations/include/low_precision/convert.hpp index 70fb76107f050d..930d7654be04bb 100644 --- a/src/common/low_precision_transformations/include/low_precision/convert.hpp +++ b/src/common/low_precision_transformations/include/low_precision/convert.hpp @@ -13,7 +13,7 @@ namespace low_precision { class LP_TRANSFORMATIONS_API ConvertTransformation : public LayerTransformation { public: - OPENVINO_RTTI("ConvertTransformation", "0"); + OPENVINO_RTTI("ConvertTransformation", "0", LayerTransformation); ConvertTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool isPrecisionPreserved(std::shared_ptr layer) const noexcept override; diff --git a/src/common/low_precision_transformations/include/low_precision/convert_subtract_constant.hpp b/src/common/low_precision_transformations/include/low_precision/convert_subtract_constant.hpp index d89384a8cd169f..7d9d8d0120588c 100644 --- a/src/common/low_precision_transformations/include/low_precision/convert_subtract_constant.hpp +++ b/src/common/low_precision_transformations/include/low_precision/convert_subtract_constant.hpp @@ -31,6 +31,6 @@ class LP_TRANSFORMATIONS_API ConvertSubtractConstant; */ class ov::pass::low_precision::ConvertSubtractConstant : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertSubtractConstant", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertSubtractConstant"); ConvertSubtractConstant(const std::vector& constantPrecisions = {}); }; diff --git a/src/common/low_precision_transformations/include/low_precision/convolution.hpp b/src/common/low_precision_transformations/include/low_precision/convolution.hpp index 0d687325692306..d91d3dd9747240 100644 --- a/src/common/low_precision_transformations/include/low_precision/convolution.hpp +++ b/src/common/low_precision_transformations/include/low_precision/convolution.hpp @@ -20,7 +20,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API ConvolutionTransformation : public WeightableLayerTransformation { public: - OPENVINO_RTTI("ConvolutionTransformation", "0"); + OPENVINO_RTTI("ConvolutionTransformation", "0", WeightableLayerTransformation); ConvolutionTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool isQuantized(const std::shared_ptr& layer, diff --git a/src/common/low_precision_transformations/include/low_precision/create_precisions_dependent_attribute.hpp b/src/common/low_precision_transformations/include/low_precision/create_precisions_dependent_attribute.hpp index c57d15dde899bd..a9fb24840aa19e 100644 --- a/src/common/low_precision_transformations/include/low_precision/create_precisions_dependent_attribute.hpp +++ b/src/common/low_precision_transformations/include/low_precision/create_precisions_dependent_attribute.hpp @@ -40,6 +40,7 @@ class CreatePrecisionsDependentAttribute; template class ov::pass::low_precision::CreatePrecisionsDependentAttribute : public ov::pass::MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("low_precision::CreatePrecisionsDependentAttribute"); CreatePrecisionsDependentAttribute() { auto operation = pattern::wrap_type(); diff --git a/src/common/low_precision_transformations/include/low_precision/depth_to_space.hpp b/src/common/low_precision_transformations/include/low_precision/depth_to_space.hpp index 0b8c2f6a4f38e2..2e8515c49a01c6 100644 --- a/src/common/low_precision_transformations/include/low_precision/depth_to_space.hpp +++ b/src/common/low_precision_transformations/include/low_precision/depth_to_space.hpp @@ -20,7 +20,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API DepthToSpaceTransformation : public TransparentBaseTransformation { public: - OPENVINO_RTTI("DepthToSpaceTransformation", "0"); + OPENVINO_RTTI("DepthToSpaceTransformation", "0", TransparentBaseTransformation); DepthToSpaceTransformation(const Params& params = Params()); bool canBeTransformed(const TransformationContext& context, std::shared_ptr layer) const override; }; diff --git a/src/common/low_precision_transformations/include/low_precision/eliminate_fake_quantize.hpp b/src/common/low_precision_transformations/include/low_precision/eliminate_fake_quantize.hpp index 2ad435983364dc..bfaa0c3b3a2b1b 100644 --- a/src/common/low_precision_transformations/include/low_precision/eliminate_fake_quantize.hpp +++ b/src/common/low_precision_transformations/include/low_precision/eliminate_fake_quantize.hpp @@ -22,7 +22,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API EliminateFakeQuantizeTransformation : public CleanupTransformation { public: - OPENVINO_RTTI("EliminateFakeQuantizeTransformation", "0"); + OPENVINO_RTTI("EliminateFakeQuantizeTransformation", "0", CleanupTransformation); EliminateFakeQuantizeTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr layer) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/fake_quantize.hpp b/src/common/low_precision_transformations/include/low_precision/fake_quantize.hpp index 7d1fd56940f65d..554133df6cb205 100644 --- a/src/common/low_precision_transformations/include/low_precision/fake_quantize.hpp +++ b/src/common/low_precision_transformations/include/low_precision/fake_quantize.hpp @@ -21,7 +21,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API FakeQuantizeTransformation : public LayerTransformation { public: - OPENVINO_RTTI("FakeQuantizeTransformation", "0"); + OPENVINO_RTTI("FakeQuantizeTransformation", "0", LayerTransformation); FakeQuantizeTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool isPrecisionPreserved(std::shared_ptr layer) const noexcept override; diff --git a/src/common/low_precision_transformations/include/low_precision/fake_quantize_decomposition.hpp b/src/common/low_precision_transformations/include/low_precision/fake_quantize_decomposition.hpp index bb898e37dd41c9..393e1bb28a2a49 100644 --- a/src/common/low_precision_transformations/include/low_precision/fake_quantize_decomposition.hpp +++ b/src/common/low_precision_transformations/include/low_precision/fake_quantize_decomposition.hpp @@ -23,7 +23,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API FakeQuantizeDecompositionTransformation : public LayerTransformation { public: - OPENVINO_RTTI("FakeQuantizeDecompositionTransformation", "0"); + OPENVINO_RTTI("FakeQuantizeDecompositionTransformation", "0", LayerTransformation); FakeQuantizeDecompositionTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool isPrecisionPreserved(std::shared_ptr layer) const noexcept override; diff --git a/src/common/low_precision_transformations/include/low_precision/fold_convert.hpp b/src/common/low_precision_transformations/include/low_precision/fold_convert.hpp index f2eff4ec0bb9ad..e773f0c8d659c2 100644 --- a/src/common/low_precision_transformations/include/low_precision/fold_convert.hpp +++ b/src/common/low_precision_transformations/include/low_precision/fold_convert.hpp @@ -23,7 +23,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API FoldConvertTransformation : public CleanupTransformation { public: - OPENVINO_RTTI("FoldConvertTransformation", "0"); + OPENVINO_RTTI("FoldConvertTransformation", "0", CleanupTransformation); FoldConvertTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr layer) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/fold_fake_quantize.hpp b/src/common/low_precision_transformations/include/low_precision/fold_fake_quantize.hpp index 545c2eb430f1c5..75f0c1c80eeeee 100644 --- a/src/common/low_precision_transformations/include/low_precision/fold_fake_quantize.hpp +++ b/src/common/low_precision_transformations/include/low_precision/fold_fake_quantize.hpp @@ -21,7 +21,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API FoldFakeQuantizeTransformation : public LayerTransformation { public: - OPENVINO_RTTI("FoldFakeQuantizeTransformation", "0"); + OPENVINO_RTTI("FoldFakeQuantizeTransformation", "0", LayerTransformation); FoldFakeQuantizeTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr layer) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/fuse_convert.hpp b/src/common/low_precision_transformations/include/low_precision/fuse_convert.hpp index bbcc934d305ca6..00c6659c50a45e 100644 --- a/src/common/low_precision_transformations/include/low_precision/fuse_convert.hpp +++ b/src/common/low_precision_transformations/include/low_precision/fuse_convert.hpp @@ -20,7 +20,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API FuseConvertTransformation : public CleanupTransformation { public: - OPENVINO_RTTI("FuseConvertTransformation", "0"); + OPENVINO_RTTI("FuseConvertTransformation", "0", CleanupTransformation); FuseConvertTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr layer) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/fuse_multiply_to_fake_quantize.hpp b/src/common/low_precision_transformations/include/low_precision/fuse_multiply_to_fake_quantize.hpp index 0bb4f874c16af2..173ec9a86b8e25 100644 --- a/src/common/low_precision_transformations/include/low_precision/fuse_multiply_to_fake_quantize.hpp +++ b/src/common/low_precision_transformations/include/low_precision/fuse_multiply_to_fake_quantize.hpp @@ -22,7 +22,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API FuseMultiplyToFakeQuantizeTransformation : public FuseElementwiseToFakeQuantizeTransformation { public: - OPENVINO_RTTI("FuseMultiplyToFakeQuantizeTransformation", "0"); + OPENVINO_RTTI("FuseMultiplyToFakeQuantizeTransformation", "0", FuseElementwiseToFakeQuantizeTransformation); FuseMultiplyToFakeQuantizeTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool isPrecisionPreserved(std::shared_ptr layer) const noexcept override; diff --git a/src/common/low_precision_transformations/include/low_precision/fuse_subtract_to_fake_quantize.hpp b/src/common/low_precision_transformations/include/low_precision/fuse_subtract_to_fake_quantize.hpp index 74e5ce299f6296..72851801ae644f 100644 --- a/src/common/low_precision_transformations/include/low_precision/fuse_subtract_to_fake_quantize.hpp +++ b/src/common/low_precision_transformations/include/low_precision/fuse_subtract_to_fake_quantize.hpp @@ -22,7 +22,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API FuseSubtractToFakeQuantizeTransformation : public FuseElementwiseToFakeQuantizeTransformation { public: - OPENVINO_RTTI("FuseSubtractToFakeQuantizeTransformation", "0"); + OPENVINO_RTTI("FuseSubtractToFakeQuantizeTransformation", "0", FuseElementwiseToFakeQuantizeTransformation); FuseSubtractToFakeQuantizeTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool isPrecisionPreserved(std::shared_ptr layer) const noexcept override; diff --git a/src/common/low_precision_transformations/include/low_precision/gather.hpp b/src/common/low_precision_transformations/include/low_precision/gather.hpp index 16cf0fabd5427f..6aebd3fb094e0a 100644 --- a/src/common/low_precision_transformations/include/low_precision/gather.hpp +++ b/src/common/low_precision_transformations/include/low_precision/gather.hpp @@ -13,7 +13,7 @@ namespace low_precision { class LP_TRANSFORMATIONS_API GatherTransformation : public LayerTransformation { public: - OPENVINO_RTTI("GatherTransformation", "0"); + OPENVINO_RTTI("GatherTransformation", "0", LayerTransformation); GatherTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool isPrecisionPreserved(std::shared_ptr layer) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/group_convolution.hpp b/src/common/low_precision_transformations/include/low_precision/group_convolution.hpp index b51b7cb2a8ac84..b8a967e28bde7f 100644 --- a/src/common/low_precision_transformations/include/low_precision/group_convolution.hpp +++ b/src/common/low_precision_transformations/include/low_precision/group_convolution.hpp @@ -21,7 +21,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API GroupConvolutionTransformation : public ConvolutionTransformation { public: - OPENVINO_RTTI("GroupConvolutionTransformation", "0"); + OPENVINO_RTTI("GroupConvolutionTransformation", "0", ConvolutionTransformation); GroupConvolutionTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool isQuantized(const std::shared_ptr& layer, diff --git a/src/common/low_precision_transformations/include/low_precision/interpolate.hpp b/src/common/low_precision_transformations/include/low_precision/interpolate.hpp index ad8b3268d05ea6..20bd5f5ba1af66 100644 --- a/src/common/low_precision_transformations/include/low_precision/interpolate.hpp +++ b/src/common/low_precision_transformations/include/low_precision/interpolate.hpp @@ -20,7 +20,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API InterpolateTransformation : public LayerTransformation { public: - OPENVINO_RTTI("InterpolateTransformation", "0"); + OPENVINO_RTTI("InterpolateTransformation", "0", LayerTransformation); InterpolateTransformation(const Params& params = Params()); bool transform(TransformationContext &context, ov::pass::pattern::Matcher &m) override; bool isPrecisionPreserved(std::shared_ptr layer) const noexcept override; diff --git a/src/common/low_precision_transformations/include/low_precision/layer_transformation.hpp b/src/common/low_precision_transformations/include/low_precision/layer_transformation.hpp index d86dbd9470cc07..a018823e5c7a9e 100644 --- a/src/common/low_precision_transformations/include/low_precision/layer_transformation.hpp +++ b/src/common/low_precision_transformations/include/low_precision/layer_transformation.hpp @@ -244,6 +244,8 @@ inline std::ostream &operator << (std::ostream &os, const DataPrecision& value) */ class LP_TRANSFORMATIONS_API LayerTransformation : public ov::pass::MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("low_precision::LayerTransformation"); + class Params { public: Params( diff --git a/src/common/low_precision_transformations/include/low_precision/low_precision.hpp b/src/common/low_precision_transformations/include/low_precision/low_precision.hpp index d6bddd3643a4f6..8fe396850633ba 100644 --- a/src/common/low_precision_transformations/include/low_precision/low_precision.hpp +++ b/src/common/low_precision_transformations/include/low_precision/low_precision.hpp @@ -42,7 +42,7 @@ class LP_TRANSFORMATIONS_API LowPrecision; class ov::pass::low_precision::MarkupOptimizations : public ov::pass::ModelPass { public: - OPENVINO_RTTI("MarkupOptimizations", "0"); + OPENVINO_RTTI("MarkupOptimizations", "0", ov::pass::ModelPass); MarkupOptimizations( const std::vector& precisionRestrictions, const std::vector& quantizationRestrictions, @@ -56,13 +56,13 @@ class ov::pass::low_precision::MarkupOptimizations : public ov::pass::ModelPass class ov::pass::low_precision::TypeRelaxedReplacer : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("TypeRelaxedReplacer", "0"); + OPENVINO_RTTI("TypeRelaxedReplacer", "0", ov::pass::GraphRewrite); TypeRelaxedReplacer(); }; class LP_TRANSFORMATIONS_API ov::pass::low_precision::LowPrecision : public ov::pass::ModelPass { public: - OPENVINO_RTTI("LowPrecision", "0"); + OPENVINO_RTTI("LowPrecision", "0", ov::pass::ModelPass); LowPrecision( const std::vector& precisionRestrictions = {}, const std::vector& quantizationRestrictions = {}, diff --git a/src/common/low_precision_transformations/include/low_precision/markup_avg_pool_precision_preserved.hpp b/src/common/low_precision_transformations/include/low_precision/markup_avg_pool_precision_preserved.hpp index da3605b4ee4ba5..1939c11aba9ee0 100644 --- a/src/common/low_precision_transformations/include/low_precision/markup_avg_pool_precision_preserved.hpp +++ b/src/common/low_precision_transformations/include/low_precision/markup_avg_pool_precision_preserved.hpp @@ -29,7 +29,7 @@ class LP_TRANSFORMATIONS_API MarkupAvgPoolPrecisionPreserved; */ class ov::pass::low_precision::MarkupAvgPoolPrecisionPreserved : public ov::pass::ModelPass { public: - OPENVINO_RTTI("MarkupAvgPoolPrecisionPreserved", "0"); + OPENVINO_RTTI("MarkupAvgPoolPrecisionPreserved", "0", ov::pass::ModelPass); MarkupAvgPoolPrecisionPreserved(const std::vector defaultPrecisions = ov::pass::low_precision::precision_set::get_int8_support()); bool run_on_model(const std::shared_ptr& m) override; private: diff --git a/src/common/low_precision_transformations/include/low_precision/markup_bias.hpp b/src/common/low_precision_transformations/include/low_precision/markup_bias.hpp index a7f46f74dc0645..46d3c4f930ba6d 100644 --- a/src/common/low_precision_transformations/include/low_precision/markup_bias.hpp +++ b/src/common/low_precision_transformations/include/low_precision/markup_bias.hpp @@ -23,10 +23,10 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API MarkupBias : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MarkupBias", "0"); + OPENVINO_MATCHER_PASS_RTTI("MarkupBias"); MarkupBias(); }; } // namespace low_precision } // namespace pass -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/common/low_precision_transformations/include/low_precision/markup_can_be_quantized.hpp b/src/common/low_precision_transformations/include/low_precision/markup_can_be_quantized.hpp index f886e69f2088c7..6954018f746501 100644 --- a/src/common/low_precision_transformations/include/low_precision/markup_can_be_quantized.hpp +++ b/src/common/low_precision_transformations/include/low_precision/markup_can_be_quantized.hpp @@ -30,7 +30,7 @@ class LP_TRANSFORMATIONS_API MarkupCanBeQuantized; */ class ov::pass::low_precision::MarkupCanBeQuantized : public ov::pass::ModelPass { public: - OPENVINO_RTTI("MarkupCanBeQuantized", "0"); + OPENVINO_RTTI("MarkupCanBeQuantized", "0", ov::pass::ModelPass); MarkupCanBeQuantized(const std::vector defaultPrecisions = { ov::element::u8, ov::element::i8 }); bool run_on_model(const std::shared_ptr& m) override; private: diff --git a/src/common/low_precision_transformations/include/low_precision/markup_precisions.hpp b/src/common/low_precision_transformations/include/low_precision/markup_precisions.hpp index 92ea93b2c3e5b1..c6a7c2ab15c7e0 100644 --- a/src/common/low_precision_transformations/include/low_precision/markup_precisions.hpp +++ b/src/common/low_precision_transformations/include/low_precision/markup_precisions.hpp @@ -65,7 +65,7 @@ class ov::pass::low_precision::MarkupPrecisions : public ov::pass::ModelPass { std::unordered_map precisionsByVersion; }; - OPENVINO_RTTI("MarkupPrecisions", "0"); + OPENVINO_RTTI("MarkupPrecisions", "0", ov::pass::ModelPass); explicit MarkupPrecisions(const std::vector& restrictions = {}, const std::vector& defaultPrecisions = { ov::element::u8, ov::element::i8 }); bool run_on_model(const std::shared_ptr& m) override; diff --git a/src/common/low_precision_transformations/include/low_precision/markup_quantization_granularity.hpp b/src/common/low_precision_transformations/include/low_precision/markup_quantization_granularity.hpp index a61473cf263963..331e07ed595088 100644 --- a/src/common/low_precision_transformations/include/low_precision/markup_quantization_granularity.hpp +++ b/src/common/low_precision_transformations/include/low_precision/markup_quantization_granularity.hpp @@ -45,7 +45,7 @@ class ov::pass::low_precision::MarkupQuantizationGranularity : public ov::pass:: std::unordered_map> portsByVersion; }; - OPENVINO_RTTI("MarkupPerTensorQuantization", "0"); + OPENVINO_RTTI("MarkupPerTensorQuantization", "0", ov::pass::ModelPass); explicit MarkupQuantizationGranularity(const std::vector& restrictions = {}); bool run_on_model(const std::shared_ptr& m) override; diff --git a/src/common/low_precision_transformations/include/low_precision/mat_mul.hpp b/src/common/low_precision_transformations/include/low_precision/mat_mul.hpp index bc0077a716f701..aef76d2b591e9a 100644 --- a/src/common/low_precision_transformations/include/low_precision/mat_mul.hpp +++ b/src/common/low_precision_transformations/include/low_precision/mat_mul.hpp @@ -21,7 +21,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API MatMulTransformation : public LayerTransformation { public: - OPENVINO_RTTI("MatMulTransformation", "0"); + OPENVINO_RTTI("MatMulTransformation", "0", LayerTransformation); MatMulTransformation(const Params& params = Params()); bool transform(TransformationContext &context, ov::pass::pattern::Matcher &m) override; bool isPrecisionPreserved(std::shared_ptr layer) const noexcept override; diff --git a/src/common/low_precision_transformations/include/low_precision/max_pool.hpp b/src/common/low_precision_transformations/include/low_precision/max_pool.hpp index 16b3fb659173e1..73b8b9b097a291 100644 --- a/src/common/low_precision_transformations/include/low_precision/max_pool.hpp +++ b/src/common/low_precision_transformations/include/low_precision/max_pool.hpp @@ -22,7 +22,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API MaxPoolTransformation : public LayerTransformation { public: - OPENVINO_RTTI("MaxPoolTransformation", "0"); + OPENVINO_RTTI("MaxPoolTransformation", "0", LayerTransformation); MaxPoolTransformation(const Params& params = Params()); bool canBeTransformed(const TransformationContext& context, std::shared_ptr op) const override; bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; diff --git a/src/common/low_precision_transformations/include/low_precision/move_fake_quantize.hpp b/src/common/low_precision_transformations/include/low_precision/move_fake_quantize.hpp index 169a4261a4aeaa..ba3740ecb417ec 100644 --- a/src/common/low_precision_transformations/include/low_precision/move_fake_quantize.hpp +++ b/src/common/low_precision_transformations/include/low_precision/move_fake_quantize.hpp @@ -14,7 +14,7 @@ namespace low_precision { class LP_TRANSFORMATIONS_API MoveFakeQuantize : public LayerTransformation { public: - OPENVINO_RTTI("MoveFakeQuantize", "0"); + OPENVINO_RTTI("MoveFakeQuantize", "0", LayerTransformation); MoveFakeQuantize(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr layer) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/multiply.hpp b/src/common/low_precision_transformations/include/low_precision/multiply.hpp index 576cb7b23b6080..ef6f942448ca12 100644 --- a/src/common/low_precision_transformations/include/low_precision/multiply.hpp +++ b/src/common/low_precision_transformations/include/low_precision/multiply.hpp @@ -21,7 +21,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API MultiplyTransformation : public WeightableLayerTransformation { public: - OPENVINO_RTTI("MultiplyTransformation", "0"); + OPENVINO_RTTI("MultiplyTransformation", "0", WeightableLayerTransformation); MultiplyTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; diff --git a/src/common/low_precision_transformations/include/low_precision/multiply_partial.hpp b/src/common/low_precision_transformations/include/low_precision/multiply_partial.hpp index f91f54cd1ad0df..0880d914d82b20 100644 --- a/src/common/low_precision_transformations/include/low_precision/multiply_partial.hpp +++ b/src/common/low_precision_transformations/include/low_precision/multiply_partial.hpp @@ -21,7 +21,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API MultiplyPartialTransformation : public EltwiseBaseTransformation { public: - OPENVINO_RTTI("MultiplyPartialTransformation", "0"); + OPENVINO_RTTI("MultiplyPartialTransformation", "0", EltwiseBaseTransformation); MultiplyPartialTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr layer) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/multiply_to_group_convolution.hpp b/src/common/low_precision_transformations/include/low_precision/multiply_to_group_convolution.hpp index b2091d44fdd8be..621813a373df58 100644 --- a/src/common/low_precision_transformations/include/low_precision/multiply_to_group_convolution.hpp +++ b/src/common/low_precision_transformations/include/low_precision/multiply_to_group_convolution.hpp @@ -22,7 +22,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API MultiplyToGroupConvolutionTransformation : public CleanupTransformation { public: - OPENVINO_RTTI("MultiplyToGroupConvolutionTransformation", "0"); + OPENVINO_RTTI("MultiplyToGroupConvolutionTransformation", "0", CleanupTransformation); MultiplyToGroupConvolutionTransformation( const Params& params = Params(), const PrecisionsRestriction::PrecisionsByPorts& restrictions = {}); diff --git a/src/common/low_precision_transformations/include/low_precision/mvn.hpp b/src/common/low_precision_transformations/include/low_precision/mvn.hpp index f875e32d96e87a..3a3f087dba7c78 100644 --- a/src/common/low_precision_transformations/include/low_precision/mvn.hpp +++ b/src/common/low_precision_transformations/include/low_precision/mvn.hpp @@ -20,7 +20,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API MVNTransformation : public LayerTransformation { public: - OPENVINO_RTTI("MVNTransformation", "0"); + OPENVINO_RTTI("MVNTransformation", "0", LayerTransformation); MVNTransformation(const Params& params = Params()); bool transform(TransformationContext &context, ov::pass::pattern::Matcher &m) override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr layer) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/normalize_l2.hpp b/src/common/low_precision_transformations/include/low_precision/normalize_l2.hpp index 5d31067bfbb5d9..1976a3f1e610bf 100644 --- a/src/common/low_precision_transformations/include/low_precision/normalize_l2.hpp +++ b/src/common/low_precision_transformations/include/low_precision/normalize_l2.hpp @@ -20,7 +20,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API NormalizeL2Transformation : public LayerTransformation { public: - OPENVINO_RTTI("NormalizeL2Transformation", "0"); + OPENVINO_RTTI("NormalizeL2Transformation", "0", LayerTransformation); NormalizeL2Transformation(const Params& params = Params()); bool transform(TransformationContext &context, ov::pass::pattern::Matcher &m) override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr layer) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/pad.hpp b/src/common/low_precision_transformations/include/low_precision/pad.hpp index 8eccf9f87e7c7e..f2aef2994f2484 100644 --- a/src/common/low_precision_transformations/include/low_precision/pad.hpp +++ b/src/common/low_precision_transformations/include/low_precision/pad.hpp @@ -22,7 +22,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API PadTransformation : public LayerTransformation { public: - OPENVINO_RTTI("PadTransformation", "0"); + OPENVINO_RTTI("PadTransformation", "0", LayerTransformation); PadTransformation(const Params& params = Params()); bool transform(TransformationContext& context, pattern::Matcher& m) override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr op) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/prelu.hpp b/src/common/low_precision_transformations/include/low_precision/prelu.hpp index 6a712b3e77306c..983aee4fcd4136 100644 --- a/src/common/low_precision_transformations/include/low_precision/prelu.hpp +++ b/src/common/low_precision_transformations/include/low_precision/prelu.hpp @@ -22,7 +22,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API PReluTransformation : public LayerTransformation { public: - OPENVINO_RTTI("PReluTransformation", "0"); + OPENVINO_RTTI("PReluTransformation", "0", LayerTransformation); PReluTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool isPrecisionPreserved(std::shared_ptr layer) const noexcept override; diff --git a/src/common/low_precision_transformations/include/low_precision/propagate_precisions.hpp b/src/common/low_precision_transformations/include/low_precision/propagate_precisions.hpp index c17fa2faded476..e9320849c8a86d 100644 --- a/src/common/low_precision_transformations/include/low_precision/propagate_precisions.hpp +++ b/src/common/low_precision_transformations/include/low_precision/propagate_precisions.hpp @@ -31,7 +31,7 @@ class LP_TRANSFORMATIONS_API PropagatePrecisions; */ class ov::pass::low_precision::PropagatePrecisions : public ov::pass::ModelPass { public: - OPENVINO_RTTI("PropagatePrecisions", "0"); + OPENVINO_RTTI("PropagatePrecisions", "0", ov::pass::ModelPass); PropagatePrecisions(const AttributeParameters& params = AttributeParameters()); bool run_on_model(const std::shared_ptr& m) override; diff --git a/src/common/low_precision_transformations/include/low_precision/propagate_shared_value.hpp b/src/common/low_precision_transformations/include/low_precision/propagate_shared_value.hpp index 16a014cda6ec04..5d6dad6517cfee 100644 --- a/src/common/low_precision_transformations/include/low_precision/propagate_shared_value.hpp +++ b/src/common/low_precision_transformations/include/low_precision/propagate_shared_value.hpp @@ -38,6 +38,7 @@ class LP_TRANSFORMATIONS_API PropagateSharedValue; template class ov::pass::low_precision::PropagateSharedValue : public ov::pass::ModelPass { public: + OPENVINO_RTTI("low_precision::PropagateSharedValue", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& f) override { OV_ITT_SCOPE(FIRST_INFERENCE, itt::domains::LPT_LT, "PropagateSharedValue"); diff --git a/src/common/low_precision_transformations/include/low_precision/propagate_through_precision_preserved.hpp b/src/common/low_precision_transformations/include/low_precision/propagate_through_precision_preserved.hpp index 0450091699065d..0a8c945d6c7fa1 100644 --- a/src/common/low_precision_transformations/include/low_precision/propagate_through_precision_preserved.hpp +++ b/src/common/low_precision_transformations/include/low_precision/propagate_through_precision_preserved.hpp @@ -38,7 +38,9 @@ class PropagateThroughPrecisionPreserved; template class ov::pass::low_precision::PropagateThroughPrecisionPreserved : public ov::pass::MatcherPass { public: - PropagateThroughPrecisionPreserved(const std::vector& defaultPrecisions = precision_set::get_int8_support()) { + OPENVINO_MATCHER_PASS_RTTI("low_precision::PropagateThroughPrecisionPreserved"); + PropagateThroughPrecisionPreserved( + const std::vector& defaultPrecisions = precision_set::get_int8_support()) { ov::graph_rewrite_callback callback = [&](pattern::Matcher& m) { auto node = m.get_match_root(); if (transformation_callback(node)) { diff --git a/src/common/low_precision_transformations/include/low_precision/propagate_to_input.hpp b/src/common/low_precision_transformations/include/low_precision/propagate_to_input.hpp index 3e550b9e950ff3..de30730fd2b151 100644 --- a/src/common/low_precision_transformations/include/low_precision/propagate_to_input.hpp +++ b/src/common/low_precision_transformations/include/low_precision/propagate_to_input.hpp @@ -37,7 +37,8 @@ class PropagateToInput; template class ov::pass::low_precision::PropagateToInput : public ov::pass::MatcherPass { public: - PropagateToInput(const std::vector& defaultPrecisions = { ov::element::u8, ov::element::i8 }) { + OPENVINO_MATCHER_PASS_RTTI("low_precision::PropagateToInput"); + PropagateToInput(const std::vector& defaultPrecisions = {ov::element::u8, ov::element::i8}) { ov::graph_rewrite_callback callback = [&](pattern::Matcher& m) { auto node = m.get_match_root(); if (transformation_callback(node)) { diff --git a/src/common/low_precision_transformations/include/low_precision/pull_reshape_through_dequantization.hpp b/src/common/low_precision_transformations/include/low_precision/pull_reshape_through_dequantization.hpp index 75d0d3f6510048..bce4858c69648e 100644 --- a/src/common/low_precision_transformations/include/low_precision/pull_reshape_through_dequantization.hpp +++ b/src/common/low_precision_transformations/include/low_precision/pull_reshape_through_dequantization.hpp @@ -30,6 +30,6 @@ class LP_TRANSFORMATIONS_API PullReshapeThroughDequantization; */ class ov::pass::low_precision::PullReshapeThroughDequantization : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PullReshapeThroughDequantization", "0"); + OPENVINO_MATCHER_PASS_RTTI("PullReshapeThroughDequantization"); PullReshapeThroughDequantization(const std::vector& inputPrecisions = {}); }; diff --git a/src/common/low_precision_transformations/include/low_precision/pull_transpose_through_dequantization.hpp b/src/common/low_precision_transformations/include/low_precision/pull_transpose_through_dequantization.hpp index 92e9eeebd2be52..61edde02c9b36c 100644 --- a/src/common/low_precision_transformations/include/low_precision/pull_transpose_through_dequantization.hpp +++ b/src/common/low_precision_transformations/include/low_precision/pull_transpose_through_dequantization.hpp @@ -30,6 +30,6 @@ class LP_TRANSFORMATIONS_API PullTransposeThroughDequantization; */ class ov::pass::low_precision::PullTransposeThroughDequantization : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PullTransposeThroughDequantization", "0"); + OPENVINO_MATCHER_PASS_RTTI("PullTransposeThroughDequantization"); PullTransposeThroughDequantization(const std::vector& inputPrecisions = {}); }; diff --git a/src/common/low_precision_transformations/include/low_precision/recurrent_cell.hpp b/src/common/low_precision_transformations/include/low_precision/recurrent_cell.hpp index 22aaf3281c2b94..fc0401b08dd74e 100644 --- a/src/common/low_precision_transformations/include/low_precision/recurrent_cell.hpp +++ b/src/common/low_precision_transformations/include/low_precision/recurrent_cell.hpp @@ -14,7 +14,7 @@ namespace low_precision { class LP_TRANSFORMATIONS_API RecurrentCellTransformation : public LayerTransformation { public: - OPENVINO_RTTI("RecurrentCellTransformation", "0"); + OPENVINO_RTTI("RecurrentCellTransformation", "0", LayerTransformation); RecurrentCellTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr layer) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/reduce_max.hpp b/src/common/low_precision_transformations/include/low_precision/reduce_max.hpp index 813d5d7a4a6965..19721c4721f545 100644 --- a/src/common/low_precision_transformations/include/low_precision/reduce_max.hpp +++ b/src/common/low_precision_transformations/include/low_precision/reduce_max.hpp @@ -24,7 +24,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API ReduceMaxTransformation : public ReduceBaseTransformation { public: - OPENVINO_RTTI("ReduceMaxTransformation", "0"); + OPENVINO_RTTI("ReduceMaxTransformation", "0", ReduceBaseTransformation); ReduceMaxTransformation(const Params& params = Params()); bool isPrecisionPreserved(std::shared_ptr reduce) const noexcept override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr reduce) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/reduce_mean.hpp b/src/common/low_precision_transformations/include/low_precision/reduce_mean.hpp index 4bf3a98a628522..c295143d3fe7ee 100644 --- a/src/common/low_precision_transformations/include/low_precision/reduce_mean.hpp +++ b/src/common/low_precision_transformations/include/low_precision/reduce_mean.hpp @@ -24,7 +24,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API ReduceMeanTransformation : public ReduceBaseTransformation { public: - OPENVINO_RTTI("ReduceMeanTransformation", "0"); + OPENVINO_RTTI("ReduceMeanTransformation", "0", ReduceBaseTransformation); ReduceMeanTransformation(const Params& params = Params()); bool isPrecisionPreserved(std::shared_ptr reduce) const noexcept override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr reduce) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/reduce_min.hpp b/src/common/low_precision_transformations/include/low_precision/reduce_min.hpp index 0f82cfe52d7bc6..5da128c79c522e 100644 --- a/src/common/low_precision_transformations/include/low_precision/reduce_min.hpp +++ b/src/common/low_precision_transformations/include/low_precision/reduce_min.hpp @@ -24,7 +24,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API ReduceMinTransformation : public ReduceBaseTransformation { public: - OPENVINO_RTTI("ReduceMinTransformation", "0"); + OPENVINO_RTTI("ReduceMinTransformation", "0", ReduceBaseTransformation); ReduceMinTransformation(const Params& params = Params()); bool isPrecisionPreserved(std::shared_ptr reduce) const noexcept override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr reduce) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/reduce_sum.hpp b/src/common/low_precision_transformations/include/low_precision/reduce_sum.hpp index 2e6ab0505457cf..db296612aac04a 100644 --- a/src/common/low_precision_transformations/include/low_precision/reduce_sum.hpp +++ b/src/common/low_precision_transformations/include/low_precision/reduce_sum.hpp @@ -24,7 +24,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API ReduceSumTransformation : public ReduceBaseTransformation { public: - OPENVINO_RTTI("ReduceSumTransformation", "0"); + OPENVINO_RTTI("ReduceSumTransformation", "0", ReduceBaseTransformation); ReduceSumTransformation(const Params& params = Params()); bool isPrecisionPreserved(std::shared_ptr reduce) const noexcept override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr reduce) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/relu.hpp b/src/common/low_precision_transformations/include/low_precision/relu.hpp index 3c2a6dbb11422b..75d9141e80ac78 100644 --- a/src/common/low_precision_transformations/include/low_precision/relu.hpp +++ b/src/common/low_precision_transformations/include/low_precision/relu.hpp @@ -22,7 +22,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API ReluTransformation : public LayerTransformation { public: - OPENVINO_RTTI("ReluTransformation", "0"); + OPENVINO_RTTI("ReluTransformation", "0", LayerTransformation); ReluTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool isPrecisionPreserved(std::shared_ptr layer) const noexcept override; diff --git a/src/common/low_precision_transformations/include/low_precision/reshape.hpp b/src/common/low_precision_transformations/include/low_precision/reshape.hpp index b5885ccbbaa7de..072263f59a8a94 100644 --- a/src/common/low_precision_transformations/include/low_precision/reshape.hpp +++ b/src/common/low_precision_transformations/include/low_precision/reshape.hpp @@ -21,7 +21,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API ReshapeTransformation : public LayerTransformation { public: - OPENVINO_RTTI("ReshapeTransformation", "0"); + OPENVINO_RTTI("ReshapeTransformation", "0", LayerTransformation); ReshapeTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool isPrecisionPreserved(std::shared_ptr layer) const noexcept override; diff --git a/src/common/low_precision_transformations/include/low_precision/shuffle_channels.hpp b/src/common/low_precision_transformations/include/low_precision/shuffle_channels.hpp index 7163269a5c0ad1..638a2580ade39f 100644 --- a/src/common/low_precision_transformations/include/low_precision/shuffle_channels.hpp +++ b/src/common/low_precision_transformations/include/low_precision/shuffle_channels.hpp @@ -21,7 +21,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API ShuffleChannelsTransformation : public LayerTransformation { public: - OPENVINO_RTTI("ShuffleChannelsTransformation", "0"); + OPENVINO_RTTI("ShuffleChannelsTransformation", "0", LayerTransformation); ShuffleChannelsTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher& m) override; bool isPrecisionPreserved(std::shared_ptr layer) const noexcept override; diff --git a/src/common/low_precision_transformations/include/low_precision/slice.hpp b/src/common/low_precision_transformations/include/low_precision/slice.hpp index 206a07d7bca9c7..c00028f0d71169 100644 --- a/src/common/low_precision_transformations/include/low_precision/slice.hpp +++ b/src/common/low_precision_transformations/include/low_precision/slice.hpp @@ -22,7 +22,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API SliceTransformation : public LayerTransformation { public: - OPENVINO_RTTI("SliceTransformation", "0"); + OPENVINO_RTTI("SliceTransformation", "0", LayerTransformation); SliceTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher& m) override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr op) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/space_to_batch.hpp b/src/common/low_precision_transformations/include/low_precision/space_to_batch.hpp index c381f9229c4455..e05353aaf24d1c 100644 --- a/src/common/low_precision_transformations/include/low_precision/space_to_batch.hpp +++ b/src/common/low_precision_transformations/include/low_precision/space_to_batch.hpp @@ -22,7 +22,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API SpaceToBatchTransformation : public LayerTransformation { public: - OPENVINO_RTTI("SpaceToBatchTransformation", "0"); + OPENVINO_RTTI("SpaceToBatchTransformation", "0", LayerTransformation); SpaceToBatchTransformation(const Params& params = Params()); bool canBeTransformed(const TransformationContext& context, std::shared_ptr op) const override; bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; diff --git a/src/common/low_precision_transformations/include/low_precision/split.hpp b/src/common/low_precision_transformations/include/low_precision/split.hpp index 323ebcb3e3cabe..2e3db010801b03 100644 --- a/src/common/low_precision_transformations/include/low_precision/split.hpp +++ b/src/common/low_precision_transformations/include/low_precision/split.hpp @@ -23,7 +23,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API SplitTransformation : public LayerTransformation { public: - OPENVINO_RTTI("SplitTransformation", "0"); + OPENVINO_RTTI("SplitTransformation", "0", LayerTransformation); SplitTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher& m) override; bool isPrecisionPreserved(std::shared_ptr layer) const noexcept override; diff --git a/src/common/low_precision_transformations/include/low_precision/squeeze.hpp b/src/common/low_precision_transformations/include/low_precision/squeeze.hpp index c46111b95f7d4c..8709250ed85104 100644 --- a/src/common/low_precision_transformations/include/low_precision/squeeze.hpp +++ b/src/common/low_precision_transformations/include/low_precision/squeeze.hpp @@ -21,7 +21,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API SqueezeTransformation : public LayerTransformation { public: - OPENVINO_RTTI("SqueezeTransformation", "0"); + OPENVINO_RTTI("SqueezeTransformation", "0", LayerTransformation); SqueezeTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool isPrecisionPreserved(std::shared_ptr layer) const noexcept override; diff --git a/src/common/low_precision_transformations/include/low_precision/strided_slice.hpp b/src/common/low_precision_transformations/include/low_precision/strided_slice.hpp index b00d520b465b1c..730531dd93f669 100644 --- a/src/common/low_precision_transformations/include/low_precision/strided_slice.hpp +++ b/src/common/low_precision_transformations/include/low_precision/strided_slice.hpp @@ -22,7 +22,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API StridedSliceTransformation : public LayerTransformation { public: - OPENVINO_RTTI("StridedSliceTransformation", "0"); + OPENVINO_RTTI("StridedSliceTransformation", "0", LayerTransformation); StridedSliceTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher& m) override; bool canBeTransformed(const TransformationContext& context, std::shared_ptr op) const override; diff --git a/src/common/low_precision_transformations/include/low_precision/subtract.hpp b/src/common/low_precision_transformations/include/low_precision/subtract.hpp index 07fdafcc4dd095..9bb9a3c94dfc95 100644 --- a/src/common/low_precision_transformations/include/low_precision/subtract.hpp +++ b/src/common/low_precision_transformations/include/low_precision/subtract.hpp @@ -21,7 +21,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API SubtractTransformation : public LayerTransformation { public: - OPENVINO_RTTI("SubtractTransformation", "0"); + OPENVINO_RTTI("SubtractTransformation", "0", LayerTransformation); SubtractTransformation(const Params& params); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; }; diff --git a/src/common/low_precision_transformations/include/low_precision/transpose.hpp b/src/common/low_precision_transformations/include/low_precision/transpose.hpp index 95a00cd5220f14..08e1dde9cbab8f 100644 --- a/src/common/low_precision_transformations/include/low_precision/transpose.hpp +++ b/src/common/low_precision_transformations/include/low_precision/transpose.hpp @@ -22,7 +22,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API TransposeTransformation : public LayerTransformation { public: - OPENVINO_RTTI("TransposeTransformation", "0"); + OPENVINO_RTTI("TransposeTransformation", "0", LayerTransformation); TransposeTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool isPrecisionPreserved(std::shared_ptr layer) const noexcept override; diff --git a/src/common/low_precision_transformations/include/low_precision/unsqueeze.hpp b/src/common/low_precision_transformations/include/low_precision/unsqueeze.hpp index a210ade145088c..b9dff50ec2b894 100644 --- a/src/common/low_precision_transformations/include/low_precision/unsqueeze.hpp +++ b/src/common/low_precision_transformations/include/low_precision/unsqueeze.hpp @@ -21,7 +21,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API UnsqueezeTransformation : public LayerTransformation { public: - OPENVINO_RTTI("UnsqueezeTransformation", "0"); + OPENVINO_RTTI("UnsqueezeTransformation", "0", LayerTransformation); UnsqueezeTransformation(const Params& params = Params()); bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override; bool isPrecisionPreserved(std::shared_ptr layer) const noexcept override; diff --git a/src/common/low_precision_transformations/include/low_precision/update_shared_precision_preserved.hpp b/src/common/low_precision_transformations/include/low_precision/update_shared_precision_preserved.hpp index 4113e1d86d4bef..9c7cce282477d0 100644 --- a/src/common/low_precision_transformations/include/low_precision/update_shared_precision_preserved.hpp +++ b/src/common/low_precision_transformations/include/low_precision/update_shared_precision_preserved.hpp @@ -36,6 +36,7 @@ class UpdateSharedPrecisionPreserved; template class ov::pass::low_precision::UpdateSharedPrecisionPreserved : public ov::pass::MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("low_precision::UpdateSharedPrecisionPreserved"); UpdateSharedPrecisionPreserved(const std::vector& defaultPrecisions = precision_set::get_int8_support()) { ov::graph_rewrite_callback callback = [&](ov::pass::pattern::Matcher& m) { auto node = m.get_match_root(); diff --git a/src/common/low_precision_transformations/include/low_precision/variadic_split.hpp b/src/common/low_precision_transformations/include/low_precision/variadic_split.hpp index 3584866b5cc0ac..9c2c2d3eec25c9 100644 --- a/src/common/low_precision_transformations/include/low_precision/variadic_split.hpp +++ b/src/common/low_precision_transformations/include/low_precision/variadic_split.hpp @@ -23,7 +23,7 @@ namespace low_precision { */ class LP_TRANSFORMATIONS_API VariadicSplitTransformation : public SplitTransformation { public: - OPENVINO_RTTI("VariadicSplitTransformation", "0"); + OPENVINO_RTTI("VariadicSplitTransformation", "0", SplitTransformation); VariadicSplitTransformation(const Params& params = Params()); }; } // namespace low_precision diff --git a/src/common/low_precision_transformations/src/assign_and_read_value.cpp b/src/common/low_precision_transformations/src/assign_and_read_value.cpp index 6b49f0b21c6675..587f65be3afc87 100644 --- a/src/common/low_precision_transformations/src/assign_and_read_value.cpp +++ b/src/common/low_precision_transformations/src/assign_and_read_value.cpp @@ -109,7 +109,7 @@ bool AssignAndReadValueTransformation::canBeTransformed(const TransformationCont return false; } - const auto readValue = std::dynamic_pointer_cast(op->get_control_dependencies()[0]); + const auto readValue = ov::as_type_ptr(op->get_control_dependencies()[0]); if (!readValue) { return false; } diff --git a/src/common/low_precision_transformations/src/low_precision.cpp b/src/common/low_precision_transformations/src/low_precision.cpp index 52479a5c2dc1fa..4045e409a413eb 100644 --- a/src/common/low_precision_transformations/src/low_precision.cpp +++ b/src/common/low_precision_transformations/src/low_precision.cpp @@ -112,7 +112,7 @@ void make_matcher_type_relaxed(ov::pass::GraphRewrite* transformation) { auto p_node = std::make_shared(element::f32, Shape{}, is_op_type); ov::graph_rewrite_callback callback = [](ov::pass::pattern::Matcher& m) { - auto l_node = std::dynamic_pointer_cast(m.get_match_root()); + auto l_node = ov::as_type_ptr(m.get_match_root()); if (!l_node) { THROW_TRANSFORMATION_EXCEPTION << "unexpected operation type for type relaxed conversion"; } diff --git a/src/common/low_precision_transformations/src/markup_can_be_quantized.cpp b/src/common/low_precision_transformations/src/markup_can_be_quantized.cpp index 6097498ca59ea6..94e5ca396017f5 100644 --- a/src/common/low_precision_transformations/src/markup_can_be_quantized.cpp +++ b/src/common/low_precision_transformations/src/markup_can_be_quantized.cpp @@ -36,25 +36,25 @@ bool ov::pass::low_precision::MarkupCanBeQuantized::run_on_model(const std::shar continue; } - if (const auto convolution = std::dynamic_pointer_cast(node)) { + if (const auto convolution = ov::as_type_ptr(node)) { if (!ConvolutionTransformation::isQuantizedStatic(convolution, defaultPrecisions)) { setEmptyPrecisions(convolution); } continue; } - if (const auto convolutionBackpropData = std::dynamic_pointer_cast(node)) { + if (const auto convolutionBackpropData = ov::as_type_ptr(node)) { if (!ConvolutionBackpropDataTransformation::isQuantizedStatic(convolutionBackpropData, defaultPrecisions)) { setEmptyPrecisions(convolutionBackpropData); } continue; } - if (const auto groupConvolution = std::dynamic_pointer_cast(node)) { + if (const auto groupConvolution = ov::as_type_ptr(node)) { if (!GroupConvolutionTransformation::isQuantizedStatic(groupConvolution, defaultPrecisions)) { setEmptyPrecisions(groupConvolution); } continue; } - if (const auto concat = std::dynamic_pointer_cast(node)) { + if (const auto concat = ov::as_type_ptr(node)) { if (!ConcatTransformation::isQuantizedStatic(concat)) { setEmptyPrecisions(concat); } diff --git a/src/common/low_precision_transformations/tests/simple_low_precision_transformer.hpp b/src/common/low_precision_transformations/tests/simple_low_precision_transformer.hpp index 7593361f8dd71a..2967e1fbb4ed6d 100644 --- a/src/common/low_precision_transformations/tests/simple_low_precision_transformer.hpp +++ b/src/common/low_precision_transformations/tests/simple_low_precision_transformer.hpp @@ -16,6 +16,7 @@ class SimpleLowPrecisionTransformer : public ov::pass::ModelPass{ public: + OPENVINO_RTTI("SimpleLowPrecisionTransformer", "0", ov::pass::ModelPass); SimpleLowPrecisionTransformer( const std::vector& precisionRestrictions = {}, const std::vector& quantizationRestrictions = {}, diff --git a/src/common/offline_transformations/include/compress_quantize_weights.hpp b/src/common/offline_transformations/include/compress_quantize_weights.hpp index 597b50828494a5..0f56fc9f69cd9b 100644 --- a/src/common/offline_transformations/include/compress_quantize_weights.hpp +++ b/src/common/offline_transformations/include/compress_quantize_weights.hpp @@ -63,7 +63,7 @@ class CompressWeightsWithFakeConvert; */ class ov::pass::CompressWeightsWithFakeQuantize : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("CompressWeightsWithFakeQuantize", "0"); + OPENVINO_MATCHER_PASS_RTTI("CompressWeightsWithFakeQuantize"); CompressWeightsWithFakeQuantize(); }; @@ -95,13 +95,13 @@ class ov::pass::CompressWeightsWithFakeQuantize : public ov::pass::MatcherPass { */ class ov::pass::CompressWeightsWithFakeConvert : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("CompressWeightsWithFakeConvert", "0"); + OPENVINO_MATCHER_PASS_RTTI("CompressWeightsWithFakeConvert"); CompressWeightsWithFakeConvert(); }; class ov::pass::CompressQuantizeWeights : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("CompressQuantizeWeights", "0"); + OPENVINO_RTTI("CompressQuantizeWeights", "0", ov::pass::GraphRewrite); CompressQuantizeWeights(); }; diff --git a/src/common/offline_transformations/include/pruning.hpp b/src/common/offline_transformations/include/pruning.hpp index c71a84fe18d396..0742da8665346a 100644 --- a/src/common/offline_transformations/include/pruning.hpp +++ b/src/common/offline_transformations/include/pruning.hpp @@ -29,7 +29,7 @@ class Pruning; */ class ov::pass::InitMasks : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("InitMasks", "0"); + OPENVINO_RTTI("InitMasks", "0", ov::pass::GraphRewrite); InitMasks(); }; @@ -41,7 +41,7 @@ class ov::pass::InitMasks : public ov::pass::GraphRewrite { */ class ov::pass::InitConstMask : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("InitConstMask", "0"); + OPENVINO_MATCHER_PASS_RTTI("InitConstMask"); explicit InitConstMask( const ov::AxisSet& dims, const std::function& condition = [](const double& value) { @@ -56,7 +56,7 @@ class ov::pass::InitConstMask : public ov::pass::MatcherPass { */ class ov::pass::PropagateMasks : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("PropagateMasks", "0"); + OPENVINO_RTTI("PropagateMasks", "0", ov::pass::GraphRewrite); PropagateMasks(); }; @@ -67,7 +67,7 @@ class ov::pass::PropagateMasks : public ov::pass::GraphRewrite { */ class ov::pass::ShrinkWeights : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ShrinkWeights", "0"); + OPENVINO_RTTI("ShrinkWeights", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr&) override; }; @@ -77,6 +77,6 @@ class ov::pass::ShrinkWeights : public ov::pass::ModelPass { */ class ov::pass::Pruning : public ov::pass::ModelPass { public: - OPENVINO_RTTI("Pruning", "0"); + OPENVINO_RTTI("Pruning", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr&) override; }; diff --git a/src/common/offline_transformations/src/pruning/init_const_mask.cpp b/src/common/offline_transformations/src/pruning/init_const_mask.cpp index 5b9b2b42cb098d..b88ebc7420fb50 100644 --- a/src/common/offline_transformations/src/pruning/init_const_mask.cpp +++ b/src/common/offline_transformations/src/pruning/init_const_mask.cpp @@ -18,7 +18,7 @@ ov::pass::InitConstMask::InitConstMask(const ov::AxisSet& dims, pattern::type_matches_any({element::i8, element::u8, element::f16, element::f32, element::f64})); matcher_pass_callback callback = [=](pattern::Matcher& m) { - auto const_node = std::dynamic_pointer_cast(m.get_match_root()); + auto const_node = ov::as_type_ptr(m.get_match_root()); if (!const_node) return false; diff --git a/src/common/offline_transformations/src/pruning/init_masks.cpp b/src/common/offline_transformations/src/pruning/init_masks.cpp index df94bfc59889c8..abe843a8b56d30 100644 --- a/src/common/offline_transformations/src/pruning/init_masks.cpp +++ b/src/common/offline_transformations/src/pruning/init_masks.cpp @@ -22,6 +22,7 @@ class InitMatMulMask; class ov::pass::init_masks::InitConvMask : public MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("init_masks::InitConvMask"); InitConvMask() { auto input = pattern::any_input(); auto weights = pattern::any_input(); @@ -59,6 +60,7 @@ class ov::pass::init_masks::InitConvMask : public MatcherPass { class ov::pass::init_masks::InitMatMulMask : public MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("init_masks::InitMatMulMask"); InitMatMulMask() { auto a = pattern::any_input(); auto b = pattern::any_input(); @@ -66,8 +68,7 @@ class ov::pass::init_masks::InitMatMulMask : public MatcherPass { ov::matcher_pass_callback callback = [=](ov::pass::pattern::Matcher& m) { const auto& pattern_map = m.get_pattern_value_map(); - const auto& matmul = - std::dynamic_pointer_cast(pattern_map.at(matmul_pattern).get_node_shared_ptr()); + const auto& matmul = ov::as_type_ptr(pattern_map.at(matmul_pattern).get_node_shared_ptr()); if (!matmul) return false; @@ -115,7 +116,7 @@ class ov::pass::init_masks::InitMatMulMask : public MatcherPass { return false; } // 2. Get constant rank to set mask on last dimension - const auto const_op = std::dynamic_pointer_cast(cur_node); + const auto const_op = ov::as_type_ptr(cur_node); const auto shape_rank = const_op->get_shape().size(); const size_t shift = (matmul->get_transpose_b()) ? 2 : 1; if (shape_rank < shift) { diff --git a/src/common/offline_transformations/src/pruning/propagate_masks.cpp b/src/common/offline_transformations/src/pruning/propagate_masks.cpp index 40e5c98a31a30f..29fda1dfcb0b6b 100644 --- a/src/common/offline_transformations/src/pruning/propagate_masks.cpp +++ b/src/common/offline_transformations/src/pruning/propagate_masks.cpp @@ -65,6 +65,7 @@ static ov::Shape broadcast_shape_to_rank(ov::Shape shape_to_broadcast, int64_t d class ov::pass::mask_propagation::MatMul : public MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("mask_propagation::MatMul"); MatMul() { auto a = pattern::any_input(pattern::has_static_shape()); auto b = pattern::any_input(pattern::has_static_shape()); @@ -99,7 +100,7 @@ class ov::pass::mask_propagation::MatMul : public MatcherPass { a_mask_row = a_mask.get(); auto b_mask_row = b_mask.get(); - const auto matmul_op = std::dynamic_pointer_cast(m_matmul.get_node_shared_ptr()); + const auto matmul_op = ov::as_type_ptr(m_matmul.get_node_shared_ptr()); const auto transpose_a = matmul_op->get_transpose_a(); const auto transpose_b = matmul_op->get_transpose_b(); @@ -201,6 +202,7 @@ class ov::pass::mask_propagation::MatMul : public MatcherPass { class ov::pass::mask_propagation::Convolution : public MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("mask_propagation::Convolution"); Convolution() { auto input = pattern::any_input(); auto weights = pattern::any_input(pattern::has_static_shape()); @@ -280,6 +282,7 @@ class ov::pass::mask_propagation::Convolution : public MatcherPass { class ov::pass::mask_propagation::GroupConvolution : public MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("mask_propagation::GroupConvolution"); GroupConvolution() { auto input = pattern::any_input(pattern::has_static_dim(1)); auto weights = pattern::any_input(pattern::has_static_shape()); @@ -366,6 +369,7 @@ class ov::pass::mask_propagation::GroupConvolution : public MatcherPass { class ov::pass::mask_propagation::GroupConvolutionReshape : public MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("mask_propagation::GroupConvolutionReshape"); GroupConvolutionReshape() { auto input = pattern::any_input(pattern::has_static_shape()); auto shape = pattern::any_input(); @@ -456,6 +460,7 @@ class ov::pass::mask_propagation::GroupConvolutionReshape : public MatcherPass { class ov::pass::mask_propagation::Elementwise : public MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("mask_propagation::Elementwise"); Elementwise() { auto input = pattern::any_input(); auto weights = pattern::any_input(); @@ -646,6 +651,7 @@ class ov::pass::mask_propagation::Elementwise : public MatcherPass { class ov::pass::mask_propagation::FakeQuantize : public MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("mask_propagation::FakeQuantize"); FakeQuantize() { auto input = pattern::any_input(pattern::has_static_shape()); auto input_low = pattern::any_input(pattern::has_static_shape()); @@ -711,7 +717,7 @@ class ov::pass::mask_propagation::FakeQuantize : public MatcherPass { m_input_high.get_node_shared_ptr(), m_output_low.get_node_shared_ptr(), m_output_high.get_node_shared_ptr()}; - auto fq_node = std::dynamic_pointer_cast(m_output.get_node_shared_ptr()); + auto fq_node = ov::as_type_ptr(m_output.get_node_shared_ptr()); if (!fq_node) return false; size_t idx = 0; @@ -758,13 +764,14 @@ class ov::pass::mask_propagation::FakeQuantize : public MatcherPass { class ov::pass::mask_propagation::Concat : public MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("mask_propagation::Concat"); Concat() { auto concat = pattern::wrap_type(pattern::has_static_shape()); ov::matcher_pass_callback callback = [=](ov::pass::pattern::Matcher& m) { const auto& pattern_map = m.get_pattern_value_map(); const auto& m_output = pattern_map.at(concat); - auto concat_ptr = std::dynamic_pointer_cast(m_output.get_node_shared_ptr()); + auto concat_ptr = ov::as_type_ptr(m_output.get_node_shared_ptr()); if (!concat_ptr) { return false; } @@ -864,6 +871,7 @@ class ov::pass::mask_propagation::Concat : public MatcherPass { class ov::pass::mask_propagation::PassThrough : public MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("mask_propagation::PassThrough"); PassThrough() { auto unary_op = pattern::wrap_type(); @@ -921,7 +930,7 @@ class ov::pass::mask_propagation::Reduce : public MatcherPass { // Check reduce operation reduces only dimension without masks if (auto input_mask = getMask(m_input)) { auto output_mask = std::make_shared(m_output.get_partial_shape().rank().get_length()); - const auto constant = std::dynamic_pointer_cast(m_weights.get_node_shared_ptr()); + const auto constant = ov::as_type_ptr(m_weights.get_node_shared_ptr()); OPENVINO_ASSERT(!!constant, "Dynamic cast returned a nullptr"); const auto reduce_dims = constant->cast_vector(); @@ -1117,6 +1126,7 @@ static std::vector collect_dims_attrs(const std::vector dims class ov::pass::mask_propagation::Reshape : public MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("mask_propagation::Reshape"); Reshape() { auto inputs = pattern::any_input(pattern::has_static_shape()); auto weights = pattern::any_input(); @@ -1134,7 +1144,7 @@ class ov::pass::mask_propagation::Reshape : public MatcherPass { if (is_type(inp.get_node())) return true; - auto constant = std::dynamic_pointer_cast(m_weights.get_node_shared_ptr()); + auto constant = ov::as_type_ptr(m_weights.get_node_shared_ptr()); if (!constant) { constant = ov::util::get_constant_from_source(m_weights.get_node_shared_ptr()); if (!constant) { @@ -1373,6 +1383,7 @@ class ov::pass::mask_propagation::Reshape : public MatcherPass { class ov::pass::mask_propagation::Transpose : public MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("mask_propagation::Transpose"); Transpose() { auto input = pattern::any_input(); auto weights = pattern::any_input(); @@ -1480,6 +1491,7 @@ static ov::Mask::Ptr create_connect_split_output_mask(ov::Mask::Ptr input_mask, class ov::pass::mask_propagation::VariadicSplit : public MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("mask_propagation::VariadicSplit"); VariadicSplit() { auto input_pattern = pattern::any_input(pattern::has_static_rank()); auto axis_pattern = pattern::wrap_type(); @@ -1547,6 +1559,7 @@ class ov::pass::mask_propagation::VariadicSplit : public MatcherPass { class ov::pass::mask_propagation::Split : public MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("mask_propagation::Split"); Split() { auto input_pattern = pattern::any_input(pattern::has_static_rank()); auto axis_pattern = pattern::wrap_type(); @@ -1597,6 +1610,7 @@ class ov::pass::mask_propagation::Split : public MatcherPass { class ov::pass::mask_propagation::StopPropagation : public MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("mask_propagation::StopPropagation"); StopPropagation() { auto any_node = pattern::any_input(); @@ -1654,6 +1668,7 @@ class ov::pass::mask_propagation::StopPropagation : public MatcherPass { class ov::pass::mask_propagation::SkipPropagation : public MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("mask_propagation::SkipPropagation"); SkipPropagation() { // Skip mask propagation for ShapeOf operation to prevent this opearation to be // processed as stop op. diff --git a/src/common/offline_transformations/src/pruning/shrink_weights.cpp b/src/common/offline_transformations/src/pruning/shrink_weights.cpp index a476c56195f952..a3e55f7f19b67e 100644 --- a/src/common/offline_transformations/src/pruning/shrink_weights.cpp +++ b/src/common/offline_transformations/src/pruning/shrink_weights.cpp @@ -28,7 +28,7 @@ static bool not_empty_mask(ov::Mask::Ptr mask) { } static bool is_static_reshape_op(std::shared_ptr node) { - auto reshape_node = std::dynamic_pointer_cast(node); + auto reshape_node = ov::as_type_ptr(node); if (!reshape_node) return false; @@ -224,7 +224,7 @@ bool ov::pass::ShrinkWeights::run_on_model(const std::shared_ptr& f) continue; // TODO: constant can be shared across functions so we need to avoid consumers from other function - auto const_node = std::dynamic_pointer_cast(node); + auto const_node = ov::as_type_ptr(node); if (!const_node) continue; diff --git a/src/common/snippets/include/snippets/pass/align_element_types.hpp b/src/common/snippets/include/snippets/pass/align_element_types.hpp index 1d5a1fa9256c88..abc48890d5638a 100644 --- a/src/common/snippets/include/snippets/pass/align_element_types.hpp +++ b/src/common/snippets/include/snippets/pass/align_element_types.hpp @@ -19,7 +19,7 @@ namespace pass { */ class AlignElementTypes: public ov::pass::ModelPass { public: - OPENVINO_RTTI("AlignElementTypes"); + OPENVINO_RTTI("AlignElementTypes", "0", ov::pass::ModelPass); AlignElementTypes(std::vector input_precisions, std::vector output_precisions); bool run_on_model(const std::shared_ptr& m) override; diff --git a/src/common/snippets/include/snippets/pass/canonicalization.hpp b/src/common/snippets/include/snippets/pass/canonicalization.hpp index 5c7acaa781d2b8..f046289e443083 100644 --- a/src/common/snippets/include/snippets/pass/canonicalization.hpp +++ b/src/common/snippets/include/snippets/pass/canonicalization.hpp @@ -22,7 +22,7 @@ namespace pass { */ class Canonicalization: public ov::pass::ModelPass { public: - OPENVINO_RTTI("Canonicalization"); + OPENVINO_RTTI("Canonicalization", "0", ov::pass::ModelPass); using BlockedShapeVector = op::Subgraph::BlockedShapeVector; using Layout = std::vector; explicit Canonicalization(const BlockedShapeVector& blocked_input_shapes); diff --git a/src/common/snippets/include/snippets/pass/collapse_subgraph.hpp b/src/common/snippets/include/snippets/pass/collapse_subgraph.hpp index 41236df12aa0ef..dc75997e19a28e 100644 --- a/src/common/snippets/include/snippets/pass/collapse_subgraph.hpp +++ b/src/common/snippets/include/snippets/pass/collapse_subgraph.hpp @@ -35,7 +35,7 @@ namespace pass { */ class TokenizeSnippets: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TokenizeSnippets", "0"); + OPENVINO_MATCHER_PASS_RTTI("TokenizeSnippets"); explicit TokenizeSnippets(const SnippetsTokenization::Config& config); static bool AppropriateForSubgraph(const std::shared_ptr&); diff --git a/src/common/snippets/include/snippets/pass/common_optimizations.hpp b/src/common/snippets/include/snippets/pass/common_optimizations.hpp index 1ff2d6293db649..ec3808add92908 100644 --- a/src/common/snippets/include/snippets/pass/common_optimizations.hpp +++ b/src/common/snippets/include/snippets/pass/common_optimizations.hpp @@ -19,7 +19,7 @@ class CommonOptimizations : public ov::pass::MatcherPass { friend class SplitDimensionM; public: - OPENVINO_RTTI("CommonOptimizations", "0"); + OPENVINO_MATCHER_PASS_RTTI("CommonOptimizations"); CommonOptimizations(const SnippetsTokenization::Config& config); }; diff --git a/src/common/snippets/include/snippets/pass/explicit_transpose_matmul_inputs.hpp b/src/common/snippets/include/snippets/pass/explicit_transpose_matmul_inputs.hpp index 5aeee244a76877..aac774a2e23044 100644 --- a/src/common/snippets/include/snippets/pass/explicit_transpose_matmul_inputs.hpp +++ b/src/common/snippets/include/snippets/pass/explicit_transpose_matmul_inputs.hpp @@ -23,7 +23,7 @@ namespace pass { */ class ExplicitTransposeMatMulInputs: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ExplicitTransposeMatMulInputs", "0"); + OPENVINO_MATCHER_PASS_RTTI("ExplicitTransposeMatMulInputs"); ExplicitTransposeMatMulInputs(); // Return `True` if all inputs (except 0-th input) have scalar shape. Otherwise returns `False` diff --git a/src/common/snippets/include/snippets/pass/extract_reshapes_from_mha.hpp b/src/common/snippets/include/snippets/pass/extract_reshapes_from_mha.hpp index c4c23b6e247951..2630c8e259f8c4 100644 --- a/src/common/snippets/include/snippets/pass/extract_reshapes_from_mha.hpp +++ b/src/common/snippets/include/snippets/pass/extract_reshapes_from_mha.hpp @@ -31,7 +31,7 @@ namespace pass { */ class ExtractReshapesFromMHA: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ExtractReshapesFromMHA", "0"); + OPENVINO_MATCHER_PASS_RTTI("ExtractReshapesFromMHA"); ExtractReshapesFromMHA(); }; diff --git a/src/common/snippets/include/snippets/pass/fq_decomposition.hpp b/src/common/snippets/include/snippets/pass/fq_decomposition.hpp index 982835b4f27d64..0d70f397e2fd97 100644 --- a/src/common/snippets/include/snippets/pass/fq_decomposition.hpp +++ b/src/common/snippets/include/snippets/pass/fq_decomposition.hpp @@ -79,6 +79,7 @@ class FakeQuantizeDecomposition : public ov::pass::MatcherPass { */ class CommonFakeQuantizeDecomposition: public ov::pass::ModelPass { public: + OPENVINO_RTTI("CommonFakeQuantizeDecomposition", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; static bool is_supported_fq(const std::shared_ptr& fq); diff --git a/src/common/snippets/include/snippets/pass/fuse_transpose_brgemm.hpp b/src/common/snippets/include/snippets/pass/fuse_transpose_brgemm.hpp index d913df46caa890..5393034bf65775 100644 --- a/src/common/snippets/include/snippets/pass/fuse_transpose_brgemm.hpp +++ b/src/common/snippets/include/snippets/pass/fuse_transpose_brgemm.hpp @@ -23,7 +23,7 @@ namespace pass { */ class FuseTransposeBrgemm: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("FuseTransposeBrgemm", "0"); + OPENVINO_MATCHER_PASS_RTTI("FuseTransposeBrgemm"); FuseTransposeBrgemm(); static bool is_supported_transpose(const Output& transpose_out); @@ -32,4 +32,4 @@ class FuseTransposeBrgemm: public ov::pass::MatcherPass { } // namespace pass } // namespace snippets -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/common/snippets/include/snippets/pass/gn_decomposition.hpp b/src/common/snippets/include/snippets/pass/gn_decomposition.hpp index 5c7b6478dec15f..fb286fff442eaa 100644 --- a/src/common/snippets/include/snippets/pass/gn_decomposition.hpp +++ b/src/common/snippets/include/snippets/pass/gn_decomposition.hpp @@ -17,10 +17,10 @@ namespace pass { */ class GNDecomposition: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GNDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("GNDecomposition"); GNDecomposition(); }; } // namespace pass } // namespace snippets -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/common/snippets/include/snippets/pass/gn_tokenization.hpp b/src/common/snippets/include/snippets/pass/gn_tokenization.hpp index 220f05f0bbbc88..cd2be0fe4944cf 100644 --- a/src/common/snippets/include/snippets/pass/gn_tokenization.hpp +++ b/src/common/snippets/include/snippets/pass/gn_tokenization.hpp @@ -18,10 +18,10 @@ namespace pass { */ class TokenizeGNSnippets : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TokenizeGNSnippets", "0"); + OPENVINO_MATCHER_PASS_RTTI("TokenizeGNSnippets"); TokenizeGNSnippets(); }; } // namespace pass } // namespace snippets -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/common/snippets/include/snippets/pass/hash.hpp b/src/common/snippets/include/snippets/pass/hash.hpp index 66126cd21bbe6d..c75bfd9a97a4da 100644 --- a/src/common/snippets/include/snippets/pass/hash.hpp +++ b/src/common/snippets/include/snippets/pass/hash.hpp @@ -18,7 +18,7 @@ namespace pass { */ class Hash : public ov::pass::ModelPass { public: - OPENVINO_RTTI("HashPass", "0"); + OPENVINO_RTTI("HashPass", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& f) override; diff --git a/src/common/snippets/include/snippets/pass/matmul_to_brgemm.hpp b/src/common/snippets/include/snippets/pass/matmul_to_brgemm.hpp index 780b153b4f0487..2afc43af507e0d 100644 --- a/src/common/snippets/include/snippets/pass/matmul_to_brgemm.hpp +++ b/src/common/snippets/include/snippets/pass/matmul_to_brgemm.hpp @@ -19,7 +19,7 @@ namespace pass { */ class MatMulToBrgemm: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MatMulToBrgemm", "0"); + OPENVINO_MATCHER_PASS_RTTI("MatMulToBrgemm"); MatMulToBrgemm(); }; diff --git a/src/common/snippets/include/snippets/pass/mha_tokenization.hpp b/src/common/snippets/include/snippets/pass/mha_tokenization.hpp index 78dad6ee8e6e19..61910752e4cfe6 100644 --- a/src/common/snippets/include/snippets/pass/mha_tokenization.hpp +++ b/src/common/snippets/include/snippets/pass/mha_tokenization.hpp @@ -40,7 +40,7 @@ namespace pass { */ class TokenizeMHASnippets: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TokenizeMHASnippets", "0"); + OPENVINO_MATCHER_PASS_RTTI("TokenizeMHASnippets"); TokenizeMHASnippets(const SnippetsTokenization::Config& config); static std::vector get_fusion_transpose_order(size_t rank); diff --git a/src/common/snippets/include/snippets/pass/propagate_precision.hpp b/src/common/snippets/include/snippets/pass/propagate_precision.hpp index 6f805cb1b68808..bbee9f3f20b85d 100644 --- a/src/common/snippets/include/snippets/pass/propagate_precision.hpp +++ b/src/common/snippets/include/snippets/pass/propagate_precision.hpp @@ -19,7 +19,7 @@ namespace pass { */ class PropagatePrecision: public ov::pass::ModelPass { public: - OPENVINO_RTTI("PropagatePrecision", "0"); + OPENVINO_RTTI("PropagatePrecision", "0", ov::pass::ModelPass); PropagatePrecision(const std::shared_ptr& target_machine); bool run_on_model(const std::shared_ptr& m) override; diff --git a/src/common/snippets/include/snippets/pass/softmax_decomposition.hpp b/src/common/snippets/include/snippets/pass/softmax_decomposition.hpp index 8e24c1532a72d3..02e236d7d71422 100644 --- a/src/common/snippets/include/snippets/pass/softmax_decomposition.hpp +++ b/src/common/snippets/include/snippets/pass/softmax_decomposition.hpp @@ -17,7 +17,7 @@ namespace pass { */ class SoftmaxDecomposition: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SoftmaxDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("SoftmaxDecomposition"); SoftmaxDecomposition(); }; diff --git a/src/common/snippets/include/snippets/pass/tokenization.hpp b/src/common/snippets/include/snippets/pass/tokenization.hpp index 24efcceec71a24..d92c12e302b096 100644 --- a/src/common/snippets/include/snippets/pass/tokenization.hpp +++ b/src/common/snippets/include/snippets/pass/tokenization.hpp @@ -37,7 +37,7 @@ int64_t GetTopologicalOrder(const std::shared_ptr&); */ class EnumerateNodes : public ov::pass::ModelPass { public: - OPENVINO_RTTI("EnumerateNodes", "0"); + OPENVINO_RTTI("EnumerateNodes", "0", ov::pass::ModelPass); EnumerateNodes() : ModelPass() {} bool run_on_model(const std::shared_ptr&) override; }; @@ -123,7 +123,7 @@ class SnippetsTokenization : public ov::pass::ModelPass { std::set m_mha_supported_transpose_ranks = { 3, 4 }; }; - OPENVINO_RTTI("SnippetsTokenization", "0"); + OPENVINO_RTTI("SnippetsTokenization", "0", ov::pass::ModelPass); SnippetsTokenization(const Config& config) : m_config(config) {} bool run_on_model(const std::shared_ptr& m) override; diff --git a/src/common/snippets/include/snippets/pass/transpose_decomposition.hpp b/src/common/snippets/include/snippets/pass/transpose_decomposition.hpp index dbef9bc7b31c93..e7179ba0abdab4 100644 --- a/src/common/snippets/include/snippets/pass/transpose_decomposition.hpp +++ b/src/common/snippets/include/snippets/pass/transpose_decomposition.hpp @@ -17,7 +17,7 @@ namespace pass { */ class TransposeDecomposition: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TransposeDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("TransposeDecomposition"); TransposeDecomposition(); static bool is_supported_transpose(const Output& transpose_out); diff --git a/src/common/snippets/include/snippets/pass/validate.hpp b/src/common/snippets/include/snippets/pass/validate.hpp index 1fedf8a2ce08d5..d050ec0aa0c40d 100644 --- a/src/common/snippets/include/snippets/pass/validate.hpp +++ b/src/common/snippets/include/snippets/pass/validate.hpp @@ -17,7 +17,7 @@ namespace pass { */ class Validate: public ov::pass::ModelPass { public: - OPENVINO_RTTI("Validate", "0"); + OPENVINO_RTTI("Validate", "0", ov::pass::ModelPass); Validate(const std::shared_ptr& pass_config) : m_pass_config(pass_config) {} bool run_on_model(const std::shared_ptr& m) override; diff --git a/src/common/transformations/include/ov_ops/gather_compressed.hpp b/src/common/transformations/include/ov_ops/gather_compressed.hpp index 83a3d021b702ca..2eff9e583df041 100644 --- a/src/common/transformations/include/ov_ops/gather_compressed.hpp +++ b/src/common/transformations/include/ov_ops/gather_compressed.hpp @@ -14,7 +14,7 @@ namespace internal { class TRANSFORMATIONS_API GatherCompressed : public ov::op::v8::Gather { public: - OPENVINO_OP("GatherCompressed", "ie_internal_opset"); + OPENVINO_OP("GatherCompressed", "ie_internal_opset", ov::op::v8::Gather); GatherCompressed() = default; diff --git a/src/common/transformations/include/ov_ops/generate_proposals_ie_internal.hpp b/src/common/transformations/include/ov_ops/generate_proposals_ie_internal.hpp index 6d74231cdf3f0d..f422b16ef3d6fc 100644 --- a/src/common/transformations/include/ov_ops/generate_proposals_ie_internal.hpp +++ b/src/common/transformations/include/ov_ops/generate_proposals_ie_internal.hpp @@ -19,7 +19,7 @@ class TRANSFORMATIONS_API GenerateProposalsIEInternal : public op::v9::GenerateP using Base = op::v9::GenerateProposals; public: - OPENVINO_OP("GenerateProposalsIEInternal", "ie_internal_opset"); + OPENVINO_OP("GenerateProposalsIEInternal", "ie_internal_opset", op::v9::GenerateProposals); GenerateProposalsIEInternal() = default; diff --git a/src/common/transformations/include/transformations/common_optimizations/adaptive_pool_to_reduce.hpp b/src/common/transformations/include/transformations/common_optimizations/adaptive_pool_to_reduce.hpp index 06dde1ff0bbf63..be271bc71f4b55 100644 --- a/src/common/transformations/include/transformations/common_optimizations/adaptive_pool_to_reduce.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/adaptive_pool_to_reduce.hpp @@ -25,6 +25,6 @@ class TRANSFORMATIONS_API AdaptivePoolToReduce; class ov::pass::AdaptivePoolToReduce : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("AdaptivePoolToReduce", "0"); + OPENVINO_MATCHER_PASS_RTTI("AdaptivePoolToReduce"); AdaptivePoolToReduce(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/add_fake_quantize_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/add_fake_quantize_fusion.hpp index f63f00a455a117..3dc06301c838f2 100644 --- a/src/common/transformations/include/transformations/common_optimizations/add_fake_quantize_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/add_fake_quantize_fusion.hpp @@ -27,6 +27,6 @@ class TRANSFORMATIONS_API AddFakeQuantizeFusion; */ class ov::pass::AddFakeQuantizeFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("AddFakeQuantizeFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("AddFakeQuantizeFusion"); AddFakeQuantizeFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/align_eltwise_input_ranks.hpp b/src/common/transformations/include/transformations/common_optimizations/align_eltwise_input_ranks.hpp index 1a7578d3551903..c18f1c96bc41bc 100644 --- a/src/common/transformations/include/transformations/common_optimizations/align_eltwise_input_ranks.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/align_eltwise_input_ranks.hpp @@ -17,7 +17,7 @@ namespace pass { class TRANSFORMATIONS_API AlignEltwiseInputRanks : public MatcherPass { public: - OPENVINO_RTTI("AlignEltwiseInputRanks", "0"); + OPENVINO_MATCHER_PASS_RTTI("AlignEltwiseInputRanks"); AlignEltwiseInputRanks(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/augru_cell_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/augru_cell_fusion.hpp index c6773de5ec894f..2d458e5e18f87f 100644 --- a/src/common/transformations/include/transformations/common_optimizations/augru_cell_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/augru_cell_fusion.hpp @@ -32,6 +32,6 @@ class TRANSFORMATIONS_API AUGRUCellFusion; class ov::pass::AUGRUCellFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("AUGRUCellFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("AUGRUCellFusion"); AUGRUCellFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/batch_to_space_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/batch_to_space_fusion.hpp index 7b05f721f52400..4ab3210a633798 100644 --- a/src/common/transformations/include/transformations/common_optimizations/batch_to_space_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/batch_to_space_fusion.hpp @@ -31,6 +31,6 @@ class TRANSFORMATIONS_API BatchToSpaceFusion; class ov::pass::BatchToSpaceFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("BatchToSpaceFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("BatchToSpaceFusion"); BatchToSpaceFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/binarize_weights.hpp b/src/common/transformations/include/transformations/common_optimizations/binarize_weights.hpp index 3803281478a055..2e975e27b26f97 100644 --- a/src/common/transformations/include/transformations/common_optimizations/binarize_weights.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/binarize_weights.hpp @@ -76,6 +76,6 @@ class TRANSFORMATIONS_API BinarizeWeights; class ov::pass::BinarizeWeights : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("BinarizeWeights", "0"); + OPENVINO_MATCHER_PASS_RTTI("BinarizeWeights"); BinarizeWeights(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/broadcast_elementwise_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/broadcast_elementwise_fusion.hpp index 38ae4799e932a0..0fffa95e62b04c 100644 --- a/src/common/transformations/include/transformations/common_optimizations/broadcast_elementwise_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/broadcast_elementwise_fusion.hpp @@ -23,6 +23,6 @@ class TRANSFORMATIONS_API BroadcastElementwiseFusion; class ov::pass::BroadcastElementwiseFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("BroadcastElementwiseFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("BroadcastElementwiseFusion"); BroadcastElementwiseFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/broadcast_transition.hpp b/src/common/transformations/include/transformations/common_optimizations/broadcast_transition.hpp index 089f1472b7c431..ff9b8151e7e47f 100644 --- a/src/common/transformations/include/transformations/common_optimizations/broadcast_transition.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/broadcast_transition.hpp @@ -24,6 +24,6 @@ class TRANSFORMATIONS_API BroadcastTransition; */ class ov::pass::BroadcastTransition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("BroadcastTransition", "0"); + OPENVINO_MATCHER_PASS_RTTI("BroadcastTransition"); BroadcastTransition(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/change_placeholder_types.hpp b/src/common/transformations/include/transformations/common_optimizations/change_placeholder_types.hpp index d2ff059d5974ef..c79291f5c03f19 100644 --- a/src/common/transformations/include/transformations/common_optimizations/change_placeholder_types.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/change_placeholder_types.hpp @@ -20,7 +20,7 @@ class TRANSFORMATIONS_API ChangePlaceholderTypes; */ class ChangePlaceholderTypes : public ModelPass { public: - OPENVINO_RTTI("ChangePlaceholderTypes", "0"); + OPENVINO_RTTI("ChangePlaceholderTypes", "0", ModelPass); explicit ChangePlaceholderTypes(const std::vector& params_with_custom_types) : m_params_with_custom_types(params_with_custom_types) {} bool run_on_model(const std::shared_ptr& model) override; diff --git a/src/common/transformations/include/transformations/common_optimizations/clamp_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/clamp_fusion.hpp index fe966323edbb98..69870870d8758a 100644 --- a/src/common/transformations/include/transformations/common_optimizations/clamp_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/clamp_fusion.hpp @@ -29,6 +29,6 @@ class TRANSFORMATIONS_API ClampFusion; class ov::pass::ClampFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ClampFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("ClampFusion"); ClampFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/common_optimizations.hpp b/src/common/transformations/include/transformations/common_optimizations/common_optimizations.hpp index 7540275ce74d0f..c5a00ecb461e22 100644 --- a/src/common/transformations/include/transformations/common_optimizations/common_optimizations.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/common_optimizations.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API CommonOptimizations; class ov::pass::CommonOptimizations : public ov::pass::ModelPass { public: - OPENVINO_RTTI("CommonOptimizations", "0"); + OPENVINO_RTTI("CommonOptimizations", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& f) override; }; diff --git a/src/common/transformations/include/transformations/common_optimizations/compress_float_constants.hpp b/src/common/transformations/include/transformations/common_optimizations/compress_float_constants.hpp index 77bac5753bd757..4384e109467a37 100644 --- a/src/common/transformations/include/transformations/common_optimizations/compress_float_constants.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/compress_float_constants.hpp @@ -25,7 +25,7 @@ bool TRANSFORMATIONS_API is_model_optimized(const std::shared_ptr& mo */ class ov::pass::CompressFloatConstantsImpl : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("CompressFloatConstantsImpl", "0"); + OPENVINO_MATCHER_PASS_RTTI("CompressFloatConstantsImpl"); /// @brief Transformation constructor /// @param postponed If true then the transformation won't compress the constants /// keeping them in the original type but still will insert Converts. This is @@ -41,7 +41,7 @@ class ov::pass::CompressFloatConstantsImpl : public ov::pass::MatcherPass { */ class ov::pass::CompressFloatConstants : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("CompressFloatConstants", "0"); + OPENVINO_RTTI("CompressFloatConstants", "0", ov::pass::GraphRewrite); /// @brief Transformation constructor /// @param postponed Postponed compression, see ov::pass::CompressFloatConstantsImpl for details. CompressFloatConstants(bool postponed = false) { diff --git a/src/common/transformations/include/transformations/common_optimizations/concat_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/concat_fusion.hpp index 31b710722bf13f..2642e0cc35c39c 100644 --- a/src/common/transformations/include/transformations/common_optimizations/concat_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/concat_fusion.hpp @@ -25,6 +25,6 @@ class TRANSFORMATIONS_API ConcatFusion; class ov::pass::ConcatFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConcatFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConcatFusion"); ConcatFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/concat_reduce_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/concat_reduce_fusion.hpp index 4aa5391dd42618..ac7e508e6589a4 100644 --- a/src/common/transformations/include/transformations/common_optimizations/concat_reduce_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/concat_reduce_fusion.hpp @@ -24,7 +24,7 @@ class TRANSFORMATIONS_API ConcatReduceFusion; */ class ov::pass::ReplaceConcatReduceByMinOrMax : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ReplaceConcatReduceByMinOrMax", "0"); + OPENVINO_MATCHER_PASS_RTTI("ReplaceConcatReduceByMinOrMax"); ReplaceConcatReduceByMinOrMax(); }; @@ -34,7 +34,7 @@ class ov::pass::ReplaceConcatReduceByMinOrMax : public ov::pass::MatcherPass { */ class ov::pass::PullSqueezeThroughEltwise : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PullSqueezeThroughEltwise", "0"); + OPENVINO_MATCHER_PASS_RTTI("PullSqueezeThroughEltwise"); PullSqueezeThroughEltwise(); }; @@ -76,6 +76,6 @@ class ov::pass::PullSqueezeThroughEltwise : public ov::pass::MatcherPass { class ov::pass::ConcatReduceFusion : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("ConcatReduceFusion", "0"); + OPENVINO_RTTI("ConcatReduceFusion", "0", ov::pass::GraphRewrite); ConcatReduceFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/concat_to_broadcast.hpp b/src/common/transformations/include/transformations/common_optimizations/concat_to_broadcast.hpp index ddb20338c0b01d..7859673f08e309 100644 --- a/src/common/transformations/include/transformations/common_optimizations/concat_to_broadcast.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/concat_to_broadcast.hpp @@ -22,6 +22,6 @@ class TRANSFORMATIONS_API ConcatToBroadcast; */ class ov::pass::ConcatToBroadcast : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConcatToBroadcast", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConcatToBroadcast"); ConcatToBroadcast(); -}; \ No newline at end of file +}; diff --git a/src/common/transformations/include/transformations/common_optimizations/conv_mul_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/conv_mul_fusion.hpp index 9e2ba5194367ba..0ae7cc67bd4be4 100644 --- a/src/common/transformations/include/transformations/common_optimizations/conv_mul_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/conv_mul_fusion.hpp @@ -23,24 +23,24 @@ class TRANSFORMATIONS_API GroupConvolutionBackpropDataMultiplyFusion; class ov::pass::ConvolutionMultiplyFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvolutionMultiplyFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvolutionMultiplyFusion"); ConvolutionMultiplyFusion(); }; class ov::pass::GroupConvolutionMultiplyFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GroupConvolutionMultiplyFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("GroupConvolutionMultiplyFusion"); GroupConvolutionMultiplyFusion(); }; class ov::pass::ConvolutionBackpropDataMultiplyFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvolutionBackpropDataMultiplyFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvolutionBackpropDataMultiplyFusion"); ConvolutionBackpropDataMultiplyFusion(); }; class ov::pass::GroupConvolutionBackpropDataMultiplyFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GroupConvolutionBackpropDataMultiplyFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("GroupConvolutionBackpropDataMultiplyFusion"); GroupConvolutionBackpropDataMultiplyFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/conv_to_binary_conv.hpp b/src/common/transformations/include/transformations/common_optimizations/conv_to_binary_conv.hpp index a60a15d37be9e7..b87013067ca18c 100644 --- a/src/common/transformations/include/transformations/common_optimizations/conv_to_binary_conv.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/conv_to_binary_conv.hpp @@ -72,6 +72,6 @@ class TRANSFORMATIONS_API ConvToBinaryConv; */ class ov::pass::ConvToBinaryConv : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvToBinaryConv", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvToBinaryConv"); ConvToBinaryConv(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/convert_nms_gather_path_to_unsigned.hpp b/src/common/transformations/include/transformations/common_optimizations/convert_nms_gather_path_to_unsigned.hpp index d778c255160281..c10621ea3866a5 100644 --- a/src/common/transformations/include/transformations/common_optimizations/convert_nms_gather_path_to_unsigned.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/convert_nms_gather_path_to_unsigned.hpp @@ -27,6 +27,6 @@ class TRANSFORMATIONS_API ConvertNmsGatherPathToUnsigned; */ class ov::pass::ConvertNmsGatherPathToUnsigned : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("ConvertNmsGatherPathToUnsigned", "0"); + OPENVINO_RTTI("ConvertNmsGatherPathToUnsigned", "0", ov::pass::GraphRewrite); ConvertNmsGatherPathToUnsigned(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/convert_quantize_dequantize.hpp b/src/common/transformations/include/transformations/common_optimizations/convert_quantize_dequantize.hpp index 7c0b6b5be95d5d..7dc5639d5e7cf4 100644 --- a/src/common/transformations/include/transformations/common_optimizations/convert_quantize_dequantize.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/convert_quantize_dequantize.hpp @@ -31,6 +31,6 @@ class TRANSFORMATIONS_API ConvertQuantizeDequantize; class ov::pass::ConvertQuantizeDequantize : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertQuantizeDequantize", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertQuantizeDequantize"); ConvertQuantizeDequantize(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/convert_u4_weights_zero_point_to_scalar.hpp b/src/common/transformations/include/transformations/common_optimizations/convert_u4_weights_zero_point_to_scalar.hpp index dfd9eef8069665..f20716cbdc7023 100644 --- a/src/common/transformations/include/transformations/common_optimizations/convert_u4_weights_zero_point_to_scalar.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/convert_u4_weights_zero_point_to_scalar.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API ConvertU4WeightsZeroPointToScalar; */ class ov::pass::ConvertU4WeightsZeroPointToScalar : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertU4WeightsZeroPointToScalar", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertU4WeightsZeroPointToScalar"); ConvertU4WeightsZeroPointToScalar(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/convolution_to_group_convolution_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/convolution_to_group_convolution_fusion.hpp index a99d4ea801d8ec..b6b909f23afc18 100644 --- a/src/common/transformations/include/transformations/common_optimizations/convolution_to_group_convolution_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/convolution_to_group_convolution_fusion.hpp @@ -24,7 +24,7 @@ namespace pass { */ class TRANSFORMATIONS_API ConvolutionToGroupConvolutionFusion : public MatcherPass { public: - OPENVINO_RTTI("ConvolutionToGroupConvolutionFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvolutionToGroupConvolutionFusion"); ConvolutionToGroupConvolutionFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/depth_to_space_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/depth_to_space_fusion.hpp index 53e6b623d67d5a..2aa5b8f0efa8c1 100644 --- a/src/common/transformations/include/transformations/common_optimizations/depth_to_space_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/depth_to_space_fusion.hpp @@ -42,6 +42,6 @@ class TRANSFORMATIONS_API DepthToSpaceFusion; class ov::pass::DepthToSpaceFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("DepthToSpaceFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("DepthToSpaceFusion"); DepthToSpaceFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/dilated_convolution_converter.hpp b/src/common/transformations/include/transformations/common_optimizations/dilated_convolution_converter.hpp index 204190cafd305c..f946a1792c0323 100644 --- a/src/common/transformations/include/transformations/common_optimizations/dilated_convolution_converter.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/dilated_convolution_converter.hpp @@ -29,6 +29,6 @@ class TRANSFORMATIONS_API DilatedConvolutionConverter; class ov::pass::DilatedConvolutionConverter : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("DilatedConvolutionConverter", "0"); + OPENVINO_MATCHER_PASS_RTTI("DilatedConvolutionConverter"); DilatedConvolutionConverter(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/dimension_tracking.hpp b/src/common/transformations/include/transformations/common_optimizations/dimension_tracking.hpp index d1ec2069b3f621..e02e77622c1a04 100644 --- a/src/common/transformations/include/transformations/common_optimizations/dimension_tracking.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/dimension_tracking.hpp @@ -22,7 +22,7 @@ class TRANSFORMATIONS_API FindBatch; class ov::pass::FindBatch : public ov::pass::ModelPass { public: - OPENVINO_RTTI("FindBatch"); + OPENVINO_RTTI("FindBatch", "0", ov::pass::ModelPass); FindBatch(bool detach_detection_output = false, bool track = true) : track(track), detach_do(detach_detection_output) {} diff --git a/src/common/transformations/include/transformations/common_optimizations/disable_random_uniform_constant_folding.hpp b/src/common/transformations/include/transformations/common_optimizations/disable_random_uniform_constant_folding.hpp index 405e8ff7288e5d..de0840c0dce97f 100644 --- a/src/common/transformations/include/transformations/common_optimizations/disable_random_uniform_constant_folding.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/disable_random_uniform_constant_folding.hpp @@ -24,6 +24,6 @@ class TRANSFORMATIONS_API DisableRandomUniformConstantFolding; */ class ov::pass::DisableRandomUniformConstantFolding : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("DisableRandomUniformConstantFolding", "0"); + OPENVINO_MATCHER_PASS_RTTI("DisableRandomUniformConstantFolding"); DisableRandomUniformConstantFolding(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/disable_shapeof_constant_folding.hpp b/src/common/transformations/include/transformations/common_optimizations/disable_shapeof_constant_folding.hpp index 1526fea966347d..912c21a29ba7c6 100644 --- a/src/common/transformations/include/transformations/common_optimizations/disable_shapeof_constant_folding.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/disable_shapeof_constant_folding.hpp @@ -19,6 +19,6 @@ class TRANSFORMATIONS_API DisableShapeOfConstantFolding; class ov::pass::DisableShapeOfConstantFolding : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("DisableShapeOfConstantFolding", "0"); + OPENVINO_MATCHER_PASS_RTTI("DisableShapeOfConstantFolding"); explicit DisableShapeOfConstantFolding(bool check_shape = true); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/divide_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/divide_fusion.hpp index 37a5b1f66a5551..fb9f8d5b122110 100644 --- a/src/common/transformations/include/transformations/common_optimizations/divide_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/divide_fusion.hpp @@ -24,6 +24,6 @@ class TRANSFORMATIONS_API DivideFusion; */ class ov::pass::DivideFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("DivideFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("DivideFusion"); DivideFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/dropout_with_random_uniform_replacer.hpp b/src/common/transformations/include/transformations/common_optimizations/dropout_with_random_uniform_replacer.hpp index 2ad17f308d46bc..6fdfaa7cc7caa1 100644 --- a/src/common/transformations/include/transformations/common_optimizations/dropout_with_random_uniform_replacer.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/dropout_with_random_uniform_replacer.hpp @@ -36,6 +36,6 @@ class TRANSFORMATIONS_API DropoutWithRandomUniformReplacer; */ class ov::pass::DropoutWithRandomUniformReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("DropoutWithRandomUniformReplacer", "0"); + OPENVINO_MATCHER_PASS_RTTI("DropoutWithRandomUniformReplacer"); DropoutWithRandomUniformReplacer(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/eliminate_duplicate_ti_inputs.hpp b/src/common/transformations/include/transformations/common_optimizations/eliminate_duplicate_ti_inputs.hpp index 058daba182b8a6..d9b7db1d08519b 100644 --- a/src/common/transformations/include/transformations/common_optimizations/eliminate_duplicate_ti_inputs.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/eliminate_duplicate_ti_inputs.hpp @@ -26,6 +26,6 @@ class TRANSFORMATIONS_API EliminateDuplicateTIInputs; class ov::pass::EliminateDuplicateTIInputs : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateDuplicateTIInputs", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateDuplicateTIInputs"); EliminateDuplicateTIInputs(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/eliminate_loop_inputs_outputs.hpp b/src/common/transformations/include/transformations/common_optimizations/eliminate_loop_inputs_outputs.hpp index ca58bb504fd811..818e312e91f3d2 100644 --- a/src/common/transformations/include/transformations/common_optimizations/eliminate_loop_inputs_outputs.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/eliminate_loop_inputs_outputs.hpp @@ -30,6 +30,6 @@ class TRANSFORMATIONS_API EliminateLoopInputsOutputs; class ov::pass::EliminateLoopInputsOutputs : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateLoopInputsOutputs", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateLoopInputsOutputs"); EliminateLoopInputsOutputs(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/eliminate_unsqueeze_gather.hpp b/src/common/transformations/include/transformations/common_optimizations/eliminate_unsqueeze_gather.hpp index b0ce4581a25569..95f52601c031ab 100644 --- a/src/common/transformations/include/transformations/common_optimizations/eliminate_unsqueeze_gather.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/eliminate_unsqueeze_gather.hpp @@ -24,7 +24,7 @@ class TRANSFORMATIONS_API EliminateGatherUnsqueeze; class ov::pass::EliminateUnsqueezeGather : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateUnsqueezeGather", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateUnsqueezeGather"); EliminateUnsqueezeGather(); }; @@ -38,6 +38,6 @@ class ov::pass::EliminateUnsqueezeGather : public ov::pass::MatcherPass { class ov::pass::EliminateGatherUnsqueeze : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateGatherUnsqueeze", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateGatherUnsqueeze"); EliminateGatherUnsqueeze(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/enable_shapeof_constant_folding.hpp b/src/common/transformations/include/transformations/common_optimizations/enable_shapeof_constant_folding.hpp index ab515ce65ac83b..dc81277841570d 100644 --- a/src/common/transformations/include/transformations/common_optimizations/enable_shapeof_constant_folding.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/enable_shapeof_constant_folding.hpp @@ -17,7 +17,7 @@ namespace pass { */ class TRANSFORMATIONS_API EnableShapeOfConstantFolding : public MatcherPass { public: - OPENVINO_RTTI("EnableShapeOfConstantFolding", "0"); + OPENVINO_MATCHER_PASS_RTTI("EnableShapeOfConstantFolding"); explicit EnableShapeOfConstantFolding(bool check_shape = true); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/fold_subgraph_empty_inputs.hpp b/src/common/transformations/include/transformations/common_optimizations/fold_subgraph_empty_inputs.hpp index 8775d93644456e..37a67fa2d20594 100644 --- a/src/common/transformations/include/transformations/common_optimizations/fold_subgraph_empty_inputs.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/fold_subgraph_empty_inputs.hpp @@ -34,13 +34,13 @@ TRANSFORMATIONS_API bool fold_subgraph_empty_inputs_is_disabled(const std::share class ov::pass::FoldSubgraphEmptyInputs : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("FoldSubgraphEmptyInputs", "0"); + OPENVINO_MATCHER_PASS_RTTI("FoldSubgraphEmptyInputs"); FoldSubgraphEmptyInputs(); }; class ov::pass::DisableFoldSubgraphEmptyInputs : public ov::RuntimeAttribute { public: - OPENVINO_RTTI("DisableFoldSubgraphEmptyInputs"); + OPENVINO_RTTI("DisableFoldSubgraphEmptyInputs", "0", ov::RuntimeAttribute); DisableFoldSubgraphEmptyInputs() = default; bool is_copyable() const override { return false; diff --git a/src/common/transformations/include/transformations/common_optimizations/fq_mul_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/fq_mul_fusion.hpp index 3b48e9da740269..d3215c8cb7168d 100644 --- a/src/common/transformations/include/transformations/common_optimizations/fq_mul_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/fq_mul_fusion.hpp @@ -27,6 +27,6 @@ class TRANSFORMATIONS_API FakeQuantizeMulFusion; class ov::pass::FakeQuantizeMulFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("FakeQuantizeMulFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("FakeQuantizeMulFusion"); FakeQuantizeMulFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/fq_reshape_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/fq_reshape_fusion.hpp index e4004d794d8ec7..361872e80b1d60 100644 --- a/src/common/transformations/include/transformations/common_optimizations/fq_reshape_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/fq_reshape_fusion.hpp @@ -27,6 +27,6 @@ class TRANSFORMATIONS_API FakeQuantizeReshapeFusion; class ov::pass::FakeQuantizeReshapeFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("FakeQuantizeReshapeFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("FakeQuantizeReshapeFusion"); FakeQuantizeReshapeFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/fuse_rotary_positional_embeddings.hpp b/src/common/transformations/include/transformations/common_optimizations/fuse_rotary_positional_embeddings.hpp index 3449151ab93ac5..a0fd76acd3a12c 100644 --- a/src/common/transformations/include/transformations/common_optimizations/fuse_rotary_positional_embeddings.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/fuse_rotary_positional_embeddings.hpp @@ -90,7 +90,7 @@ class ov::pass::RoPEShareCosSin : public ov::pass::MatcherPass { */ class ov::pass::RoPEFusion : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("RoPEFusion", "0"); + OPENVINO_RTTI("RoPEFusion", "0", ov::pass::GraphRewrite); RoPEFusion(bool support_2d_rope = false) { add_matcher(); add_matcher(); diff --git a/src/common/transformations/include/transformations/common_optimizations/fused_names_cleanup.hpp b/src/common/transformations/include/transformations/common_optimizations/fused_names_cleanup.hpp index 8058a01811d9bc..794ab93d7eda59 100644 --- a/src/common/transformations/include/transformations/common_optimizations/fused_names_cleanup.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/fused_names_cleanup.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API FusedNamesCleanup; */ class ov::pass::FusedNamesCleanup : public ov::pass::ModelPass { public: - OPENVINO_RTTI("FusedNamesCleanup", "0"); + OPENVINO_RTTI("FusedNamesCleanup", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; diff --git a/src/common/transformations/include/transformations/common_optimizations/gelu_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/gelu_fusion.hpp index c3e50b7c992a53..8771681e720dbc 100644 --- a/src/common/transformations/include/transformations/common_optimizations/gelu_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/gelu_fusion.hpp @@ -31,7 +31,7 @@ class TRANSFORMATIONS_API GeluFusionWithTanhNoPower; */ class ov::pass::GeluFusionWithErfOne : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GeluFusionWithErfOne", "0"); + OPENVINO_MATCHER_PASS_RTTI("GeluFusionWithErfOne"); GeluFusionWithErfOne(); }; @@ -42,7 +42,7 @@ class ov::pass::GeluFusionWithErfOne : public ov::pass::MatcherPass { */ class ov::pass::GeluFusionWithErfTwo : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GeluFusionWithErfTwo", "0"); + OPENVINO_MATCHER_PASS_RTTI("GeluFusionWithErfTwo"); GeluFusionWithErfTwo(); }; @@ -53,7 +53,7 @@ class ov::pass::GeluFusionWithErfTwo : public ov::pass::MatcherPass { */ class ov::pass::GeluFusionWithErfThree : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GeluFusionWithErfThree", "0"); + OPENVINO_MATCHER_PASS_RTTI("GeluFusionWithErfThree"); GeluFusionWithErfThree(); }; @@ -64,7 +64,7 @@ class ov::pass::GeluFusionWithErfThree : public ov::pass::MatcherPass { */ class ov::pass::GeluFusionWithErfFour : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GeluFusionWithErfFour", "0"); + OPENVINO_MATCHER_PASS_RTTI("GeluFusionWithErfFour"); GeluFusionWithErfFour(); }; @@ -75,7 +75,7 @@ class ov::pass::GeluFusionWithErfFour : public ov::pass::MatcherPass { */ class ov::pass::GeluFusionWithTanh : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GeluFusionWithTanh", "0"); + OPENVINO_MATCHER_PASS_RTTI("GeluFusionWithTanh"); GeluFusionWithTanh(); }; @@ -86,7 +86,7 @@ class ov::pass::GeluFusionWithTanh : public ov::pass::MatcherPass { */ class ov::pass::GeluFusionWithTanhNoPower : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GeluFusionWithTanhNoPower", "0"); + OPENVINO_MATCHER_PASS_RTTI("GeluFusionWithTanhNoPower"); GeluFusionWithTanhNoPower(); }; @@ -96,7 +96,7 @@ class ov::pass::GeluFusionWithTanhNoPower : public ov::pass::MatcherPass { */ class ov::pass::GeluFusion : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("GeluFusion", "0"); + OPENVINO_RTTI("GeluFusion", "0", ov::pass::GraphRewrite); GeluFusion() { add_matcher(); add_matcher(); diff --git a/src/common/transformations/include/transformations/common_optimizations/glu_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/glu_fusion.hpp index 7ec71a05027d80..e55a76e031f8f6 100644 --- a/src/common/transformations/include/transformations/common_optimizations/glu_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/glu_fusion.hpp @@ -13,7 +13,7 @@ namespace pass { class TRANSFORMATIONS_API GLUFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GLUFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("GLUFusion"); GLUFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/gru_cell_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/gru_cell_fusion.hpp index 50bc5ac370a74c..12031de6fc1c92 100644 --- a/src/common/transformations/include/transformations/common_optimizations/gru_cell_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/gru_cell_fusion.hpp @@ -35,6 +35,6 @@ class TRANSFORMATIONS_API GRUCellFusion; class ov::pass::GRUCellFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GRUCellFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("GRUCellFusion"); GRUCellFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/hsigmoid_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/hsigmoid_fusion.hpp index 04841837a5a76b..b225fe2404c3d4 100644 --- a/src/common/transformations/include/transformations/common_optimizations/hsigmoid_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/hsigmoid_fusion.hpp @@ -29,7 +29,7 @@ class TRANSFORMATIONS_API HSigmoidFusionWithClampDiv; */ class ov::pass::HSigmoidFusionWithReluDiv : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("HSigmoidFusionWithReluDiv", "0"); + OPENVINO_MATCHER_PASS_RTTI("HSigmoidFusionWithReluDiv"); HSigmoidFusionWithReluDiv(); }; @@ -39,7 +39,7 @@ class ov::pass::HSigmoidFusionWithReluDiv : public ov::pass::MatcherPass { */ class ov::pass::HSigmoidFusionWithReluMul : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("HSigmoidFusionWithReluMul", "0"); + OPENVINO_MATCHER_PASS_RTTI("HSigmoidFusionWithReluMul"); HSigmoidFusionWithReluMul(); }; @@ -49,7 +49,7 @@ class ov::pass::HSigmoidFusionWithReluMul : public ov::pass::MatcherPass { */ class ov::pass::HSigmoidFusionWithoutRelu : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("HSigmoidFusionWithoutRelu", "0"); + OPENVINO_MATCHER_PASS_RTTI("HSigmoidFusionWithoutRelu"); HSigmoidFusionWithoutRelu(); }; @@ -59,7 +59,7 @@ class ov::pass::HSigmoidFusionWithoutRelu : public ov::pass::MatcherPass { */ class ov::pass::HSigmoidFusionWithClampMul : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("HSigmoidFusionWithClampMul", "0"); + OPENVINO_MATCHER_PASS_RTTI("HSigmoidFusionWithClampMul"); HSigmoidFusionWithClampMul(); }; @@ -69,7 +69,7 @@ class ov::pass::HSigmoidFusionWithClampMul : public ov::pass::MatcherPass { */ class ov::pass::HSigmoidFusionWithClampDiv : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("HSigmoidFusionWithClampDiv", "0"); + OPENVINO_MATCHER_PASS_RTTI("HSigmoidFusionWithClampDiv"); HSigmoidFusionWithClampDiv(); }; @@ -79,7 +79,7 @@ class ov::pass::HSigmoidFusionWithClampDiv : public ov::pass::MatcherPass { */ class ov::pass::HSigmoidFusion : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("HSigmoidFusion", "0"); + OPENVINO_RTTI("HSigmoidFusion", "0", ov::pass::GraphRewrite); HSigmoidFusion() { add_matcher(); add_matcher(); diff --git a/src/common/transformations/include/transformations/common_optimizations/hswish_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/hswish_fusion.hpp index ede2769ec278f1..b746a531d8d38c 100644 --- a/src/common/transformations/include/transformations/common_optimizations/hswish_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/hswish_fusion.hpp @@ -28,7 +28,7 @@ class TRANSFORMATIONS_API HSwishFusionWithClamp; */ class ov::pass::HSwishFusionWithReluDiv : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("HSwishFusionWithReluDiv", "0"); + OPENVINO_MATCHER_PASS_RTTI("HSwishFusionWithReluDiv"); HSwishFusionWithReluDiv(); }; @@ -38,7 +38,7 @@ class ov::pass::HSwishFusionWithReluDiv : public ov::pass::MatcherPass { */ class ov::pass::HSwishFusionWithReluMul : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("HSwishFusionWithReluMul", "0"); + OPENVINO_MATCHER_PASS_RTTI("HSwishFusionWithReluMul"); HSwishFusionWithReluMul(); }; @@ -48,7 +48,7 @@ class ov::pass::HSwishFusionWithReluMul : public ov::pass::MatcherPass { */ class ov::pass::HSwishFusionWithHSigmoid : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("HSwishFusionWithHSigmoid", "0"); + OPENVINO_MATCHER_PASS_RTTI("HSwishFusionWithHSigmoid"); HSwishFusionWithHSigmoid(); }; @@ -58,7 +58,7 @@ class ov::pass::HSwishFusionWithHSigmoid : public ov::pass::MatcherPass { */ class ov::pass::HSwishFusionWithClamp : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("HSwishFusionWithClamp", "0"); + OPENVINO_MATCHER_PASS_RTTI("HSwishFusionWithClamp"); HSwishFusionWithClamp(); }; @@ -68,7 +68,7 @@ class ov::pass::HSwishFusionWithClamp : public ov::pass::MatcherPass { */ class ov::pass::HSwishFusion : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("HSwishFusion", "0"); + OPENVINO_RTTI("HSwishFusion", "0", ov::pass::GraphRewrite); HSwishFusion() { add_matcher(); add_matcher(); diff --git a/src/common/transformations/include/transformations/common_optimizations/interpolate_sequence_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/interpolate_sequence_fusion.hpp index ff7495e5a2d405..af6ba9055b45e1 100644 --- a/src/common/transformations/include/transformations/common_optimizations/interpolate_sequence_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/interpolate_sequence_fusion.hpp @@ -25,6 +25,6 @@ class TRANSFORMATIONS_API InterpolateSequenceFusion; */ class ov::pass::InterpolateSequenceFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("InterpolateSequenceFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("InterpolateSequenceFusion"); InterpolateSequenceFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/leaky_relu_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/leaky_relu_fusion.hpp index 42abc74e0dbc2a..93765f2e39c2ef 100644 --- a/src/common/transformations/include/transformations/common_optimizations/leaky_relu_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/leaky_relu_fusion.hpp @@ -26,6 +26,6 @@ class TRANSFORMATIONS_API LeakyReluFusion; class ov::pass::LeakyReluFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("LeakyReluFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("LeakyReluFusion"); LeakyReluFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/lin_op_sequence_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/lin_op_sequence_fusion.hpp index 2e239e40c332b9..c6af6bdd51fddd 100644 --- a/src/common/transformations/include/transformations/common_optimizations/lin_op_sequence_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/lin_op_sequence_fusion.hpp @@ -23,19 +23,19 @@ class TRANSFORMATIONS_API MultiplyMultiplyFusion; class ov::pass::AddMultiplyFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("AddMultiplyFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("AddMultiplyFusion"); AddMultiplyFusion(); }; class ov::pass::AddAddFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("AddAddFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("AddAddFusion"); AddAddFusion(); }; class ov::pass::MultiplyMultiplyFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MultiplyMultiplyFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("MultiplyMultiplyFusion"); MultiplyMultiplyFusion(); }; @@ -45,7 +45,7 @@ class ov::pass::MultiplyMultiplyFusion : public ov::pass::MatcherPass { */ class ov::pass::LinOpSequenceFusion : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("LinOpSequenceFusion", "0"); + OPENVINO_RTTI("LinOpSequenceFusion", "0", ov::pass::GraphRewrite); LinOpSequenceFusion() { add_matcher(); add_matcher(); diff --git a/src/common/transformations/include/transformations/common_optimizations/lora_subgraph_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/lora_subgraph_fusion.hpp index 8422ad95f262c6..e31f99fdb63872 100644 --- a/src/common/transformations/include/transformations/common_optimizations/lora_subgraph_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/lora_subgraph_fusion.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API LoraSubgraphFusion; class ov::pass::LoraSubgraphFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("LoraSubgraphFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("LoraSubgraphFusion"); LoraSubgraphFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/lstm_cell_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/lstm_cell_fusion.hpp index 947e39edcfd0e0..bf15aa80288f65 100644 --- a/src/common/transformations/include/transformations/common_optimizations/lstm_cell_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/lstm_cell_fusion.hpp @@ -24,7 +24,7 @@ class TRANSFORMATIONS_API LSTMCellFusionWithSplitWeights; */ class ov::pass::LSTMCellFusionWithJointWeights : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("LSTMCellFusionWithJointWeights", "0"); + OPENVINO_MATCHER_PASS_RTTI("LSTMCellFusionWithJointWeights"); LSTMCellFusionWithJointWeights(); }; @@ -35,7 +35,7 @@ class ov::pass::LSTMCellFusionWithJointWeights : public ov::pass::MatcherPass { */ class ov::pass::LSTMCellFusionWithSplitWeights : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("LSTMCellFusionWithSplitWeights", "0"); + OPENVINO_MATCHER_PASS_RTTI("LSTMCellFusionWithSplitWeights"); LSTMCellFusionWithSplitWeights(); }; @@ -45,7 +45,7 @@ class ov::pass::LSTMCellFusionWithSplitWeights : public ov::pass::MatcherPass { */ class ov::pass::LSTMCellFusion : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("LSTMCellFusion", "0"); + OPENVINO_RTTI("LSTMCellFusion", "0", ov::pass::GraphRewrite); LSTMCellFusion() { add_matcher(); add_matcher(); diff --git a/src/common/transformations/include/transformations/common_optimizations/mark_precision_sensitive_shapeof_subgraphs.hpp b/src/common/transformations/include/transformations/common_optimizations/mark_precision_sensitive_shapeof_subgraphs.hpp index 05e73456d46ee0..0ce5417314add7 100644 --- a/src/common/transformations/include/transformations/common_optimizations/mark_precision_sensitive_shapeof_subgraphs.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/mark_precision_sensitive_shapeof_subgraphs.hpp @@ -26,7 +26,7 @@ class TRANSFORMATIONS_API MarkShapeOfSubgraphs; */ class ov::pass::MarkPrecisionSensitiveShapeOfSubgraphs : public ModelPass { public: - OPENVINO_RTTI("MarkPrecisionSensitiveShapeOfSubgraphs", "0"); + OPENVINO_RTTI("MarkPrecisionSensitiveShapeOfSubgraphs", "0", ModelPass); MarkPrecisionSensitiveShapeOfSubgraphs(); bool run_on_model(const std::shared_ptr& f) override; @@ -41,7 +41,7 @@ class ov::pass::MarkPrecisionSensitiveShapeOfSubgraphs : public ModelPass { */ class ov::pass::MarkShapeOfSubgraphs : public MarkPrecisionSensitiveShapeOfSubgraphs { public: - OPENVINO_RTTI("MarkShapeOfSubgraphs", "0"); + OPENVINO_RTTI("MarkShapeOfSubgraphs", "0", MarkPrecisionSensitiveShapeOfSubgraphs); MarkShapeOfSubgraphs(); }; @@ -53,7 +53,7 @@ class ov::pass::MarkShapeOfSubgraphs : public MarkPrecisionSensitiveShapeOfSubgr */ class ov::pass::MarkPrecisionSensitiveConstants : public MarkPrecisionSensitiveShapeOfSubgraphs { public: - OPENVINO_RTTI("MarkPrecisionSensitiveConstants", "0"); + OPENVINO_RTTI("MarkPrecisionSensitiveConstants", "0", MarkPrecisionSensitiveShapeOfSubgraphs); MarkPrecisionSensitiveConstants(); }; @@ -65,6 +65,6 @@ class ov::pass::MarkPrecisionSensitiveConstants : public MarkPrecisionSensitiveS */ class ov::pass::MarkDividesInShapeSubgraphs : public MarkPrecisionSensitiveShapeOfSubgraphs { public: - OPENVINO_RTTI("MarkDividesInShapeSubgraphs", "0"); + OPENVINO_RTTI("MarkDividesInShapeSubgraphs", "0", MarkPrecisionSensitiveShapeOfSubgraphs); MarkDividesInShapeSubgraphs(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/mark_rope_input_to_keep_in_mixed_precision.hpp b/src/common/transformations/include/transformations/common_optimizations/mark_rope_input_to_keep_in_mixed_precision.hpp index c555b991de07ba..09db8db879dbeb 100644 --- a/src/common/transformations/include/transformations/common_optimizations/mark_rope_input_to_keep_in_mixed_precision.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/mark_rope_input_to_keep_in_mixed_precision.hpp @@ -27,7 +27,7 @@ namespace pass { class TRANSFORMATIONS_API MarkRopeInputsToKeepInMixedPrecision : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MarkRopeInputsToKeepInMixedPrecision", "0"); + OPENVINO_MATCHER_PASS_RTTI("MarkRopeInputsToKeepInMixedPrecision"); MarkRopeInputsToKeepInMixedPrecision(); private: @@ -35,4 +35,4 @@ class TRANSFORMATIONS_API MarkRopeInputsToKeepInMixedPrecision : public ov::pass }; } // namespace pass -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/common/transformations/include/transformations/common_optimizations/matmul_const_transposes_extraction.hpp b/src/common/transformations/include/transformations/common_optimizations/matmul_const_transposes_extraction.hpp index 7626be5f877527..313f5cd244a32e 100644 --- a/src/common/transformations/include/transformations/common_optimizations/matmul_const_transposes_extraction.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/matmul_const_transposes_extraction.hpp @@ -18,7 +18,7 @@ namespace pass { class TRANSFORMATIONS_API MatMulConstTransposesExtraction : public MatcherPass { public: - OPENVINO_RTTI("MatMulConstTransposesExtraction", "0"); + OPENVINO_MATCHER_PASS_RTTI("MatMulConstTransposesExtraction"); MatMulConstTransposesExtraction(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/matmul_multiply_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/matmul_multiply_fusion.hpp index 7994a04be7972d..767f44a8393e74 100644 --- a/src/common/transformations/include/transformations/common_optimizations/matmul_multiply_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/matmul_multiply_fusion.hpp @@ -58,6 +58,6 @@ class TRANSFORMATIONS_API MatMulMultiplyFusion; */ class ov::pass::MatMulMultiplyFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MatMulMultiplyFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("MatMulMultiplyFusion"); MatMulMultiplyFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/mish_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/mish_fusion.hpp index 8dc6e0149c881f..c905ee2f336232 100644 --- a/src/common/transformations/include/transformations/common_optimizations/mish_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/mish_fusion.hpp @@ -25,6 +25,6 @@ class TRANSFORMATIONS_API MishFusion; */ class ov::pass::MishFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MishFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("MishFusion"); MishFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/moc_legacy_transformations.hpp b/src/common/transformations/include/transformations/common_optimizations/moc_legacy_transformations.hpp index 833ce83e6cf065..65c7af4a54a4e4 100644 --- a/src/common/transformations/include/transformations/common_optimizations/moc_legacy_transformations.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/moc_legacy_transformations.hpp @@ -32,7 +32,7 @@ namespace pass { class MOCLegacyTransformations : public ModelPass { public: - OPENVINO_RTTI("MOCLegacyTransformations", "0"); + OPENVINO_RTTI("MOCLegacyTransformations", "0", ModelPass); explicit MOCLegacyTransformations(const std::vector& params_with_custom_types) : m_params_with_custom_types(params_with_custom_types) {} bool run_on_model(const std::shared_ptr& f) override; diff --git a/src/common/transformations/include/transformations/common_optimizations/moc_transformations.hpp b/src/common/transformations/include/transformations/common_optimizations/moc_transformations.hpp index 49893dfb220de6..b51f3fc607c6a8 100644 --- a/src/common/transformations/include/transformations/common_optimizations/moc_transformations.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/moc_transformations.hpp @@ -28,7 +28,7 @@ class ov::pass::MOCTransformations : public ov::pass::ModelPass { bool m_low_precision_enabled; public: - OPENVINO_RTTI("MOCTransformations", "0"); + OPENVINO_RTTI("MOCTransformations", "0", ov::pass::ModelPass); /** * use_shapes = True enables transformations which are depends on shapes and also it * enables ConstantFolding for all ShapeOf operations. diff --git a/src/common/transformations/include/transformations/common_optimizations/move_eltwise_up_data_movement.hpp b/src/common/transformations/include/transformations/common_optimizations/move_eltwise_up_data_movement.hpp index 4f704b089190a4..07c1cd1cfe6b6f 100644 --- a/src/common/transformations/include/transformations/common_optimizations/move_eltwise_up_data_movement.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/move_eltwise_up_data_movement.hpp @@ -29,7 +29,7 @@ namespace pass { /// └────────────────┘ └────────────────┘ class TRANSFORMATIONS_API MoveEltwiseUpThroughDataMovScalar : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MoveEltwiseUpThroughDataMovScalar", "0"); + OPENVINO_MATCHER_PASS_RTTI("MoveEltwiseUpThroughDataMovScalar"); MoveEltwiseUpThroughDataMovScalar(std::vector allowed_data_movement_ops); }; @@ -50,13 +50,13 @@ class TRANSFORMATIONS_API MoveEltwiseUpThroughDataMovScalar : public ov::pass::M /// └────────────────┘ └────────────────────┘ └───────────┘ └─────────────┘ class TRANSFORMATIONS_API MoveEltwiseUpThroughDataMovPerChannel : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MoveEltwiseUpThroughDataMovPerChannel", "0"); + OPENVINO_MATCHER_PASS_RTTI("MoveEltwiseUpThroughDataMovPerChannel"); MoveEltwiseUpThroughDataMovPerChannel(); }; class TRANSFORMATIONS_API MoveEltwiseUpThroughDataMov : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("MoveEltwiseUpThroughDataMov", "0"); + OPENVINO_RTTI("MoveEltwiseUpThroughDataMov", "0", ov::pass::GraphRewrite); MoveEltwiseUpThroughDataMov(std::vector allowed_data_movement_ops = get_default_allowed_ops()) { this->add_matcher(allowed_data_movement_ops); this->add_matcher(); diff --git a/src/common/transformations/include/transformations/common_optimizations/mul_conv_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/mul_conv_fusion.hpp index 4fae74debc1014..84fe28e512549c 100644 --- a/src/common/transformations/include/transformations/common_optimizations/mul_conv_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/mul_conv_fusion.hpp @@ -80,24 +80,24 @@ class TRANSFORMATIONS_API MultiplyGroupConvolutionBackpropDataFusion; class ov::pass::MultiplyConvolutionFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MultiplyConvolutionFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("MultiplyConvolutionFusion"); MultiplyConvolutionFusion(); }; class ov::pass::MultiplyGroupConvolutionFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MultiplyGroupConvolutionFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("MultiplyGroupConvolutionFusion"); MultiplyGroupConvolutionFusion(); }; class ov::pass::MultiplyConvolutionBackpropDataFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MultiplyConvolutionBackpropDataFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("MultiplyConvolutionBackpropDataFusion"); MultiplyConvolutionBackpropDataFusion(); }; class ov::pass::MultiplyGroupConvolutionBackpropDataFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MultiplyGroupConvolutionBackpropDataFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("MultiplyGroupConvolutionBackpropDataFusion"); MultiplyGroupConvolutionBackpropDataFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/mul_fake_quantize_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/mul_fake_quantize_fusion.hpp index f66e52f82c6c0e..e5afe2b7ace09c 100644 --- a/src/common/transformations/include/transformations/common_optimizations/mul_fake_quantize_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/mul_fake_quantize_fusion.hpp @@ -27,6 +27,6 @@ class TRANSFORMATIONS_API MulFakeQuantizeFusion; */ class ov::pass::MulFakeQuantizeFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MulFakeQuantizeFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("MulFakeQuantizeFusion"); MulFakeQuantizeFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/mvn_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/mvn_fusion.hpp index dc8561d89e18ab..ec6959e9c1845f 100644 --- a/src/common/transformations/include/transformations/common_optimizations/mvn_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/mvn_fusion.hpp @@ -28,7 +28,7 @@ class TRANSFORMATIONS_API MVNFusionWithConstantsInside; */ class ov::pass::MVNFusionWithoutConstants : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MVNFusionWithoutConstants", "0"); + OPENVINO_MATCHER_PASS_RTTI("MVNFusionWithoutConstants"); MVNFusionWithoutConstants(); }; @@ -40,7 +40,7 @@ class ov::pass::MVNFusionWithoutConstants : public ov::pass::MatcherPass { */ class ov::pass::MVNFusionWithConstantsInside : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MVNFusionWithConstantsInside", "0"); + OPENVINO_MATCHER_PASS_RTTI("MVNFusionWithConstantsInside"); MVNFusionWithConstantsInside(); }; @@ -50,7 +50,7 @@ class ov::pass::MVNFusionWithConstantsInside : public ov::pass::MatcherPass { */ class ov::pass::MVNFusion : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("MVNFusion", "0"); + OPENVINO_RTTI("MVNFusion", "0", ov::pass::GraphRewrite); MVNFusion() { add_matcher(); add_matcher(); diff --git a/src/common/transformations/include/transformations/common_optimizations/nearest_neighbor_upsampling_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/nearest_neighbor_upsampling_fusion.hpp index 04b45ee6c67cd3..338e48afd77f64 100644 --- a/src/common/transformations/include/transformations/common_optimizations/nearest_neighbor_upsampling_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/nearest_neighbor_upsampling_fusion.hpp @@ -25,6 +25,6 @@ class TRANSFORMATIONS_API NearestNeighborUpsamplingFusion; */ class ov::pass::NearestNeighborUpsamplingFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("NearestNeighborUpsamplingFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("NearestNeighborUpsamplingFusion"); NearestNeighborUpsamplingFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/nonzero_horizontal_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/nonzero_horizontal_fusion.hpp index d579cb0c8a9ec1..e0ad6ccb98453a 100644 --- a/src/common/transformations/include/transformations/common_optimizations/nonzero_horizontal_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/nonzero_horizontal_fusion.hpp @@ -23,6 +23,6 @@ class TRANSFORMATIONS_API NonZeroHorizontalFusion; */ class ov::pass::NonZeroHorizontalFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("NonZeroHorizontalFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("NonZeroHorizontalFusion"); NonZeroHorizontalFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/nop_elimination.hpp b/src/common/transformations/include/transformations/common_optimizations/nop_elimination.hpp index 76190906d157e2..7d9d137899b9ce 100644 --- a/src/common/transformations/include/transformations/common_optimizations/nop_elimination.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/nop_elimination.hpp @@ -49,7 +49,7 @@ class ov::pass::EliminateReduceReshape : public ov::pass::MatcherPass { */ class ov::pass::EliminatePad : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminatePad", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminatePad"); EliminatePad(); }; @@ -59,7 +59,7 @@ class ov::pass::EliminatePad : public ov::pass::MatcherPass { */ class ov::pass::EliminateConvert : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateConvert", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateConvert"); EliminateConvert(); }; @@ -69,7 +69,7 @@ class ov::pass::EliminateConvert : public ov::pass::MatcherPass { */ class ov::pass::EliminateConvertNonZero : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateConvertNonZero", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateConvertNonZero"); EliminateConvertNonZero(); }; @@ -79,7 +79,7 @@ class ov::pass::EliminateConvertNonZero : public ov::pass::MatcherPass { */ class ov::pass::EliminateConcat : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateConcat", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateConcat"); EliminateConcat(); }; @@ -89,7 +89,7 @@ class ov::pass::EliminateConcat : public ov::pass::MatcherPass { */ class ov::pass::EliminateSplit : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateSplit", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateSplit"); EliminateSplit(); }; @@ -99,7 +99,7 @@ class ov::pass::EliminateSplit : public ov::pass::MatcherPass { */ class ov::pass::EliminateSqueeze : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateSqueeze", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateSqueeze"); EliminateSqueeze(); }; @@ -109,7 +109,7 @@ class ov::pass::EliminateSqueeze : public ov::pass::MatcherPass { */ class ov::pass::EliminateUnsqueeze : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateUnsqueeze", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateUnsqueeze"); EliminateUnsqueeze(); }; @@ -119,7 +119,7 @@ class ov::pass::EliminateUnsqueeze : public ov::pass::MatcherPass { */ class ov::pass::EliminateTranspose : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateTranspose", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateTranspose"); EliminateTranspose(); }; @@ -129,7 +129,7 @@ class ov::pass::EliminateTranspose : public ov::pass::MatcherPass { */ class ov::pass::EliminateEltwise : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateEltwise", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateEltwise"); EliminateEltwise(); }; @@ -139,13 +139,13 @@ class ov::pass::EliminateEltwise : public ov::pass::MatcherPass { */ class ov::pass::EliminateScatterUpdate : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateScatterUpdate", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateScatterUpdate"); EliminateScatterUpdate(); }; class ov::pass::NopElimination : public GraphRewrite { public: - OPENVINO_RTTI("NopElimination", "0"); + OPENVINO_RTTI("NopElimination", "0", GraphRewrite); NopElimination(bool use_shape_for_elimination = true); }; @@ -155,7 +155,7 @@ class ov::pass::NopElimination : public GraphRewrite { */ class ov::pass::EliminateSplitConcat : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateSplitConcat", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateSplitConcat"); EliminateSplitConcat(); }; @@ -165,7 +165,7 @@ class ov::pass::EliminateSplitConcat : public ov::pass::MatcherPass { */ class ov::pass::EliminateNopBroadcast : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateNopBroadcast", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateNopBroadcast"); EliminateNopBroadcast(); }; @@ -177,7 +177,7 @@ class ov::pass::EliminateNopBroadcast : public ov::pass::MatcherPass { */ class ov::pass::EliminateSliceBeforeGatherElements : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateSliceBeforeGatherElements", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateSliceBeforeGatherElements"); EliminateSliceBeforeGatherElements(); }; @@ -188,7 +188,7 @@ class ov::pass::EliminateSliceBeforeGatherElements : public ov::pass::MatcherPas */ class ov::pass::EliminateStridedSlice : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateStridedSlice", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateStridedSlice"); EliminateStridedSlice(); }; @@ -199,7 +199,7 @@ class ov::pass::EliminateStridedSlice : public ov::pass::MatcherPass { */ class ov::pass::EliminateSlice : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateSlice", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateSlice"); EliminateSlice(); }; @@ -210,7 +210,7 @@ class ov::pass::EliminateSlice : public ov::pass::MatcherPass { */ class ov::pass::EliminateStridedSliceByShape : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateStridedSliceByShape", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateStridedSliceByShape"); EliminateStridedSliceByShape(); }; @@ -222,6 +222,6 @@ class ov::pass::EliminateStridedSliceByShape : public ov::pass::MatcherPass { */ class ov::pass::PrepareShapeOpsForEliminationAroundBE : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PrepareShapeOpsForEliminationAroundBE", "0"); + OPENVINO_MATCHER_PASS_RTTI("PrepareShapeOpsForEliminationAroundBE"); PrepareShapeOpsForEliminationAroundBE(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/normalize_l2_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/normalize_l2_fusion.hpp index 39355ec6af5ec4..01ac902140f01b 100644 --- a/src/common/transformations/include/transformations/common_optimizations/normalize_l2_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/normalize_l2_fusion.hpp @@ -31,6 +31,6 @@ class TRANSFORMATIONS_API NormalizeL2Fusion; */ class ov::pass::NormalizeL2Fusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("NormalizeL2Fusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("NormalizeL2Fusion"); NormalizeL2Fusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/optimize_strided_slice.hpp b/src/common/transformations/include/transformations/common_optimizations/optimize_strided_slice.hpp index 454378a0e9bbd1..559de5d1fcf507 100644 --- a/src/common/transformations/include/transformations/common_optimizations/optimize_strided_slice.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/optimize_strided_slice.hpp @@ -29,7 +29,7 @@ class TRANSFORMATIONS_API SliceSequenceToSingleSlice; */ class ov::pass::UselessSliceEraser : public ov::pass::ModelPass { public: - OPENVINO_RTTI("UselessSliceEraser", "0"); + OPENVINO_RTTI("UselessSliceEraser", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; @@ -41,7 +41,7 @@ class ov::pass::UselessSliceEraser : public ov::pass::ModelPass { */ class ov::pass::GroupedStridedSliceOptimizer : public ov::pass::ModelPass { public: - OPENVINO_RTTI("GroupedStridedSliceOptimizer", "0"); + OPENVINO_RTTI("GroupedStridedSliceOptimizer", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; @@ -53,7 +53,7 @@ class ov::pass::GroupedStridedSliceOptimizer : public ov::pass::ModelPass { */ class ov::pass::GroupedSliceToVSplitOptimization : public ov::pass::ModelPass { public: - OPENVINO_RTTI("GroupedSliceToVSplitOptimization", "0"); + OPENVINO_RTTI("GroupedSliceToVSplitOptimization", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; @@ -71,7 +71,7 @@ class ov::pass::GroupedSliceToVSplitOptimization : public ov::pass::ModelPass { */ class ov::pass::SliceSequenceToSingleSlice : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SliceSequenceToSingleSlice", "0"); + OPENVINO_MATCHER_PASS_RTTI("SliceSequenceToSingleSlice"); SliceSequenceToSingleSlice(); }; @@ -84,7 +84,7 @@ class ov::pass::StridedSliceOptimization : public ov::pass::ModelPass { public: StridedSliceOptimization(bool use_shapes = true); - OPENVINO_RTTI("StridedSliceOptimization", "0"); + OPENVINO_RTTI("StridedSliceOptimization", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; private: diff --git a/src/common/transformations/include/transformations/common_optimizations/pad_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/pad_fusion.hpp index 799fe0a8a4ea81..9503882598d3a0 100644 --- a/src/common/transformations/include/transformations/common_optimizations/pad_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/pad_fusion.hpp @@ -30,7 +30,7 @@ class TRANSFORMATIONS_API PadFusionGroupConvolutionBackpropData; */ class ov::pass::PadFusionAvgPool : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PadFusionAvgPool", "0"); + OPENVINO_MATCHER_PASS_RTTI("PadFusionAvgPool"); PadFusionAvgPool(); }; @@ -43,7 +43,7 @@ class ov::pass::PadFusionAvgPool : public ov::pass::MatcherPass { */ class ov::pass::PadFusionConvolution : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PadFusionConvolution", "0"); + OPENVINO_MATCHER_PASS_RTTI("PadFusionConvolution"); PadFusionConvolution(); }; @@ -57,7 +57,7 @@ class ov::pass::PadFusionConvolution : public ov::pass::MatcherPass { */ class ov::pass::PadFusionConvolutionBackpropData : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PadFusionConvolutionBackpropData", "0"); + OPENVINO_MATCHER_PASS_RTTI("PadFusionConvolutionBackpropData"); PadFusionConvolutionBackpropData(); }; @@ -70,7 +70,7 @@ class ov::pass::PadFusionConvolutionBackpropData : public ov::pass::MatcherPass */ class ov::pass::PadFusionGroupConvolution : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PadFusionGroupConvolution", "0"); + OPENVINO_MATCHER_PASS_RTTI("PadFusionGroupConvolution"); PadFusionGroupConvolution(); }; @@ -84,13 +84,13 @@ class ov::pass::PadFusionGroupConvolution : public ov::pass::MatcherPass { */ class ov::pass::PadFusionGroupConvolutionBackpropData : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PadFusionGroupConvolutionBackpropData", "0"); + OPENVINO_MATCHER_PASS_RTTI("PadFusionGroupConvolutionBackpropData"); PadFusionGroupConvolutionBackpropData(); }; class ov::pass::PadFusion : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("PadFusion", "0"); + OPENVINO_RTTI("PadFusion", "0", ov::pass::GraphRewrite); PadFusion() { add_matcher(); add_matcher(); diff --git a/src/common/transformations/include/transformations/common_optimizations/prelu_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/prelu_fusion.hpp index b2ba7ca9447450..8b6ff7485e4541 100644 --- a/src/common/transformations/include/transformations/common_optimizations/prelu_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/prelu_fusion.hpp @@ -41,7 +41,7 @@ class TRANSFORMATIONS_API PReluFusionNegReluMulAdd; */ class ov::pass::PReluFusionNegativeAdd : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PReluFusionNegativeAdd", "0"); + OPENVINO_MATCHER_PASS_RTTI("PReluFusionNegativeAdd"); PReluFusionNegativeAdd(); }; @@ -60,7 +60,7 @@ class ov::pass::PReluFusionNegativeAdd : public ov::pass::MatcherPass { */ class ov::pass::PReluFusionNegativeSub : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PReluFusionNegativeSub", "0"); + OPENVINO_MATCHER_PASS_RTTI("PReluFusionNegativeSub"); PReluFusionNegativeSub(); }; @@ -79,7 +79,7 @@ class ov::pass::PReluFusionNegativeSub : public ov::pass::MatcherPass { */ class ov::pass::PReluFusionMultiplyAdd : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PReluFusionMultiplyAdd", "0"); + OPENVINO_MATCHER_PASS_RTTI("PReluFusionMultiplyAdd"); PReluFusionMultiplyAdd(); }; @@ -98,7 +98,7 @@ class ov::pass::PReluFusionMultiplyAdd : public ov::pass::MatcherPass { */ class ov::pass::PReluFusionMultiplySub : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PReluFusionMultiplySub", "0"); + OPENVINO_MATCHER_PASS_RTTI("PReluFusionMultiplySub"); PReluFusionMultiplySub(); }; @@ -119,7 +119,7 @@ class ov::pass::PReluFusionMultiplySub : public ov::pass::MatcherPass { */ class ov::pass::PReluFusionAbsSubMulMulAdd : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PReluFusionAbsSubMulMulAdd", "0"); + OPENVINO_MATCHER_PASS_RTTI("PReluFusionAbsSubMulMulAdd"); PReluFusionAbsSubMulMulAdd(); }; @@ -138,7 +138,7 @@ class ov::pass::PReluFusionAbsSubMulMulAdd : public ov::pass::MatcherPass { */ class ov::pass::PReluFusionNegReluMulAdd : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PReluFusionNegReluMulAdd", "0"); + OPENVINO_MATCHER_PASS_RTTI("PReluFusionNegReluMulAdd"); PReluFusionNegReluMulAdd(); }; @@ -148,7 +148,7 @@ class ov::pass::PReluFusionNegReluMulAdd : public ov::pass::MatcherPass { */ class ov::pass::PReluFusion : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("PReluFusion", "0"); + OPENVINO_RTTI("PReluFusion", "0", ov::pass::GraphRewrite); PReluFusion() { add_matcher(); add_matcher(); diff --git a/src/common/transformations/include/transformations/common_optimizations/pull_through_reduce.hpp b/src/common/transformations/include/transformations/common_optimizations/pull_through_reduce.hpp index c31902cd478bfa..69be8036b5a0ab 100644 --- a/src/common/transformations/include/transformations/common_optimizations/pull_through_reduce.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/pull_through_reduce.hpp @@ -25,7 +25,7 @@ class TRANSFORMATIONS_API PullReshapeThroughReduce; */ class ov::pass::PullUnsqueezeThroughReduce : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PullUnsqueezeThroughReduce", "0"); + OPENVINO_MATCHER_PASS_RTTI("PullUnsqueezeThroughReduce"); PullUnsqueezeThroughReduce(); }; @@ -37,7 +37,7 @@ class ov::pass::PullUnsqueezeThroughReduce : public ov::pass::MatcherPass { */ class ov::pass::PullReshapeThroughReduce : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PullReshapeThroughReduce", "0"); + OPENVINO_MATCHER_PASS_RTTI("PullReshapeThroughReduce"); PullReshapeThroughReduce(); }; @@ -49,7 +49,7 @@ class ov::pass::PullReshapeThroughReduce : public ov::pass::MatcherPass { */ class ov::pass::PullThroughReduce : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("PullThroughReduce", "0"); + OPENVINO_RTTI("PullThroughReduce", "0", ov::pass::GraphRewrite); PullThroughReduce() { add_matcher(); add_matcher(); diff --git a/src/common/transformations/include/transformations/common_optimizations/pull_transpose_through_fq.hpp b/src/common/transformations/include/transformations/common_optimizations/pull_transpose_through_fq.hpp index c4aa71724a07a3..5e92d0eab4247c 100644 --- a/src/common/transformations/include/transformations/common_optimizations/pull_transpose_through_fq.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/pull_transpose_through_fq.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API PullTransposeThroughFQUp; class ov::pass::PullTransposeThroughFQUp : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PullTransposeThroughFQUp", "0"); + OPENVINO_MATCHER_PASS_RTTI("PullTransposeThroughFQUp"); PullTransposeThroughFQUp(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/push_constant_to_subgraph.hpp b/src/common/transformations/include/transformations/common_optimizations/push_constant_to_subgraph.hpp index e571b9a41869f2..bd67218ab1ddbe 100644 --- a/src/common/transformations/include/transformations/common_optimizations/push_constant_to_subgraph.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/push_constant_to_subgraph.hpp @@ -17,7 +17,7 @@ namespace pass { */ class TRANSFORMATIONS_API PushConstantToSubgraph : public ov::pass::ModelPass { public: - OPENVINO_RTTI("PushConstantToSubgraph", "0"); + OPENVINO_RTTI("PushConstantToSubgraph", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& model) override; }; diff --git a/src/common/transformations/include/transformations/common_optimizations/random_uniform_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/random_uniform_fusion.hpp index 198666e9a02673..1f4c76ee810612 100644 --- a/src/common/transformations/include/transformations/common_optimizations/random_uniform_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/random_uniform_fusion.hpp @@ -23,6 +23,6 @@ class TRANSFORMATIONS_API RandomUniformFusion; */ class ov::pass::RandomUniformFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("RandomUniformFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("RandomUniformFusion"); RandomUniformFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/reduce_merge.hpp b/src/common/transformations/include/transformations/common_optimizations/reduce_merge.hpp index 20daf9173b87c8..a24ce14c43aaeb 100644 --- a/src/common/transformations/include/transformations/common_optimizations/reduce_merge.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/reduce_merge.hpp @@ -64,6 +64,6 @@ class TRANSFORMATIONS_API ReduceMerge; */ class ov::pass::ReduceMerge : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ReduceMerge", "0"); + OPENVINO_MATCHER_PASS_RTTI("ReduceMerge"); ReduceMerge(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/reduce_reshape_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/reduce_reshape_fusion.hpp index 2827be2cdb5738..b7c5978e1458e1 100644 --- a/src/common/transformations/include/transformations/common_optimizations/reduce_reshape_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/reduce_reshape_fusion.hpp @@ -22,6 +22,6 @@ class TRANSFORMATIONS_API ReduceReshapeFusion; */ class ov::pass::ReduceReshapeFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ReduceReshapeFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("ReduceReshapeFusion"); ReduceReshapeFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/relu_fake_quantize_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/relu_fake_quantize_fusion.hpp index 8d2895b378c774..04ffa7ddb4b8b0 100644 --- a/src/common/transformations/include/transformations/common_optimizations/relu_fake_quantize_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/relu_fake_quantize_fusion.hpp @@ -25,6 +25,6 @@ class TRANSFORMATIONS_API ReluFakeQuantizeFusion; class ov::pass::ReluFakeQuantizeFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ReluFakeQuantizeFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("ReluFakeQuantizeFusion"); ReluFakeQuantizeFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/remove_concat_zero_dim_input.hpp b/src/common/transformations/include/transformations/common_optimizations/remove_concat_zero_dim_input.hpp index 5c746cd4dde987..f4102b8c2eb4ff 100644 --- a/src/common/transformations/include/transformations/common_optimizations/remove_concat_zero_dim_input.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/remove_concat_zero_dim_input.hpp @@ -24,7 +24,7 @@ class OPENVINO_API DisableRemoveConcatZeroDimInput; class RemoveConcatZeroDimInput : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("RemoveConcatZeroDimInput", "0"); + OPENVINO_MATCHER_PASS_RTTI("RemoveConcatZeroDimInput"); RemoveConcatZeroDimInput(); }; @@ -36,7 +36,7 @@ OPENVINO_API bool remove_concat_zerodim_input_is_disabled(const std::shared_ptr< class DisableRemoveConcatZeroDimInput : public ov::RuntimeAttribute { public: - OPENVINO_RTTI("DisableRemoveConcatZeroDimInput"); + OPENVINO_RTTI("DisableRemoveConcatZeroDimInput", "0", ov::RuntimeAttribute); DisableRemoveConcatZeroDimInput() = default; bool is_copyable() const override { return false; diff --git a/src/common/transformations/include/transformations/common_optimizations/remove_filtering_boxes_by_size.hpp b/src/common/transformations/include/transformations/common_optimizations/remove_filtering_boxes_by_size.hpp index 40dfb824d2ece2..54947f1ad82175 100644 --- a/src/common/transformations/include/transformations/common_optimizations/remove_filtering_boxes_by_size.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/remove_filtering_boxes_by_size.hpp @@ -21,12 +21,12 @@ class TRANSFORMATIONS_API RemoveFilteringBoxesBySize; class ov::pass::FuseFilteringBoxesBySize : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("FuseFilteringBoxesBySize", "0"); + OPENVINO_RTTI("FuseFilteringBoxesBySize", "0", ov::pass::GraphRewrite); FuseFilteringBoxesBySize(); }; class ov::pass::RemoveFilteringBoxesBySize : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("RemoveFilteringBoxesBySize", "0"); + OPENVINO_MATCHER_PASS_RTTI("RemoveFilteringBoxesBySize"); RemoveFilteringBoxesBySize(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/remove_multi_subgraph_op_dangling_params.hpp b/src/common/transformations/include/transformations/common_optimizations/remove_multi_subgraph_op_dangling_params.hpp index 359d68f7c980c2..47d6674d39bc28 100644 --- a/src/common/transformations/include/transformations/common_optimizations/remove_multi_subgraph_op_dangling_params.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/remove_multi_subgraph_op_dangling_params.hpp @@ -23,6 +23,6 @@ class TRANSFORMATIONS_API RemoveMultiSubGraphOpDanglingParamsResults; class ov::pass::RemoveMultiSubGraphOpDanglingParamsResults : public ov::pass::ModelPass { public: - OPENVINO_RTTI("RemoveMultiSubGraphOpDanglingParamsResults", "0"); + OPENVINO_RTTI("RemoveMultiSubGraphOpDanglingParamsResults", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; diff --git a/src/common/transformations/include/transformations/common_optimizations/reshape_prelu.hpp b/src/common/transformations/include/transformations/common_optimizations/reshape_prelu.hpp index 9ced2036d9906b..6c5a629a2fa840 100644 --- a/src/common/transformations/include/transformations/common_optimizations/reshape_prelu.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/reshape_prelu.hpp @@ -22,6 +22,6 @@ class TRANSFORMATIONS_API ReshapePRelu; class ov::pass::ReshapePRelu : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ReshapePRelu", "0"); + OPENVINO_MATCHER_PASS_RTTI("ReshapePRelu"); ReshapePRelu(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/reshape_sequence_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/reshape_sequence_fusion.hpp index 5fa22e7feb0fe6..5aaed4a6be32ad 100644 --- a/src/common/transformations/include/transformations/common_optimizations/reshape_sequence_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/reshape_sequence_fusion.hpp @@ -23,6 +23,6 @@ class TRANSFORMATIONS_API ReshapeSequenceFusion; class ov::pass::ReshapeSequenceFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ReshapeSequenceFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("ReshapeSequenceFusion"); ReshapeSequenceFusion(bool use_shape_for_elimination = true); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/reverse_shape_and_type_infer.hpp b/src/common/transformations/include/transformations/common_optimizations/reverse_shape_and_type_infer.hpp index cfc5d789d9c07e..8a87403ba71854 100644 --- a/src/common/transformations/include/transformations/common_optimizations/reverse_shape_and_type_infer.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/reverse_shape_and_type_infer.hpp @@ -20,7 +20,7 @@ class TRANSFORMATIONS_API ReverseShapeAndTypeInfer; */ class ov::pass::ReverseShapeAndTypeInfer : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ReverseShapeAndTypeInfer", "0"); + OPENVINO_RTTI("ReverseShapeAndTypeInfer", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& f) override; private: diff --git a/src/common/transformations/include/transformations/common_optimizations/ric_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/ric_fusion.hpp index c91c27a464cada..81640f4ecd93b9 100644 --- a/src/common/transformations/include/transformations/common_optimizations/ric_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/ric_fusion.hpp @@ -23,6 +23,6 @@ class TRANSFORMATIONS_API ReverseInputChannelsFusion; class ov::pass::ReverseInputChannelsFusion : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ReverseInputChannelsFusion", "0"); + OPENVINO_RTTI("ReverseInputChannelsFusion", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr&) override; }; diff --git a/src/common/transformations/include/transformations/common_optimizations/rms_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/rms_fusion.hpp index d8cb02a596ab6c..0a63b3cb6e9a7c 100644 --- a/src/common/transformations/include/transformations/common_optimizations/rms_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/rms_fusion.hpp @@ -29,7 +29,7 @@ namespace pass { class RMSFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("RMSFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("RMSFusion"); RMSFusion(bool force_tail_convert = true); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/select_with_one_value_condition.hpp b/src/common/transformations/include/transformations/common_optimizations/select_with_one_value_condition.hpp index 5278e17d07ff64..1146565efa1b48 100644 --- a/src/common/transformations/include/transformations/common_optimizations/select_with_one_value_condition.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/select_with_one_value_condition.hpp @@ -26,6 +26,6 @@ class TRANSFORMATIONS_API SelectWithOneValueCondition; class ov::pass::SelectWithOneValueCondition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SelectWithOneValueCondition", "0"); + OPENVINO_MATCHER_PASS_RTTI("SelectWithOneValueCondition"); SelectWithOneValueCondition(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/sequence_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/sequence_fusion.hpp index ecba41990e28dd..a4f432b8bd584f 100644 --- a/src/common/transformations/include/transformations/common_optimizations/sequence_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/sequence_fusion.hpp @@ -30,6 +30,6 @@ class TRANSFORMATIONS_API SequenceFusion; class ov::pass::SequenceFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SequenceFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("SequenceFusion"); SequenceFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/shared_ops_optimization.hpp b/src/common/transformations/include/transformations/common_optimizations/shared_ops_optimization.hpp index 8e2a87502ebcc9..cdcba3393636cf 100644 --- a/src/common/transformations/include/transformations/common_optimizations/shared_ops_optimization.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/shared_ops_optimization.hpp @@ -22,6 +22,6 @@ class TRANSFORMATIONS_API SharedOpOptimization; */ class ov::pass::SharedOpOptimization : public ov::pass::ModelPass { public: - OPENVINO_RTTI("SharedOpOptimization", "0"); + OPENVINO_RTTI("SharedOpOptimization", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; diff --git a/src/common/transformations/include/transformations/common_optimizations/shuffle_channels_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/shuffle_channels_fusion.hpp index 2304fe637b4551..b88cbdb64731a0 100644 --- a/src/common/transformations/include/transformations/common_optimizations/shuffle_channels_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/shuffle_channels_fusion.hpp @@ -34,6 +34,6 @@ class TRANSFORMATIONS_API ShuffleChannelsFusion; class ov::pass::ShuffleChannelsFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ShuffleChannelsFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("ShuffleChannelsFusion"); ShuffleChannelsFusion(const bool reshape_constants_check); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/simplify_shape_of_sub_graph.hpp b/src/common/transformations/include/transformations/common_optimizations/simplify_shape_of_sub_graph.hpp index 509047578bd489..3c8b46def2fb72 100644 --- a/src/common/transformations/include/transformations/common_optimizations/simplify_shape_of_sub_graph.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/simplify_shape_of_sub_graph.hpp @@ -31,7 +31,7 @@ class TRANSFORMATIONS_API AbsSinking; */ class ov::pass::GroupedGatherElimination : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GroupedGatherElimination", "0"); + OPENVINO_MATCHER_PASS_RTTI("GroupedGatherElimination"); GroupedGatherElimination(); }; @@ -41,7 +41,7 @@ class ov::pass::GroupedGatherElimination : public ov::pass::MatcherPass { */ class ov::pass::SimplifyShapeOfSubGraph : public ov::pass::ModelPass { public: - OPENVINO_RTTI("SimplifyShapeOfSubGraph", "0"); + OPENVINO_RTTI("SimplifyShapeOfSubGraph", "0", ov::pass::ModelPass); explicit SimplifyShapeOfSubGraph(bool use_shapes = true) : m_use_shapes(use_shapes){}; bool run_on_model(const std::shared_ptr& m) override; @@ -55,7 +55,7 @@ class ov::pass::SimplifyShapeOfSubGraph : public ov::pass::ModelPass { */ class ov::pass::GatherNopElimination : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GatherNopElimination", "0"); + OPENVINO_MATCHER_PASS_RTTI("GatherNopElimination"); GatherNopElimination(); }; @@ -67,7 +67,7 @@ class ov::pass::GatherNopElimination : public ov::pass::MatcherPass { */ class ov::pass::SimplifyGatherShapeOf : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SimplifyGatherShapeOf", "0"); + OPENVINO_MATCHER_PASS_RTTI("SimplifyGatherShapeOf"); SimplifyGatherShapeOf(); }; @@ -78,7 +78,7 @@ class ov::pass::SimplifyGatherShapeOf : public ov::pass::MatcherPass { */ class ov::pass::SimplifySecondInputOfReshape : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SimplifySecondInputOfReshape", "0"); + OPENVINO_MATCHER_PASS_RTTI("SimplifySecondInputOfReshape"); SimplifySecondInputOfReshape(); }; @@ -90,6 +90,6 @@ class ov::pass::SimplifySecondInputOfReshape : public ov::pass::MatcherPass { */ class ov::pass::AbsSinking : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("AbsSinking", "0"); + OPENVINO_MATCHER_PASS_RTTI("AbsSinking"); AbsSinking(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/skip_gather_before_transpose_and_reshape.hpp b/src/common/transformations/include/transformations/common_optimizations/skip_gather_before_transpose_and_reshape.hpp index a93fdb8f4f20fe..3e937ba217d66c 100644 --- a/src/common/transformations/include/transformations/common_optimizations/skip_gather_before_transpose_and_reshape.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/skip_gather_before_transpose_and_reshape.hpp @@ -26,6 +26,6 @@ class TRANSFORMATIONS_API SkipGatherBeforeTransposeAndReshape; */ class ov::pass::SkipGatherBeforeTransposeAndReshape : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SkipGatherBeforeTransposeAndReshape", "0"); + OPENVINO_MATCHER_PASS_RTTI("SkipGatherBeforeTransposeAndReshape"); SkipGatherBeforeTransposeAndReshape(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/softmax_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/softmax_fusion.hpp index f56a8bd1b574f7..07524e3799cf64 100644 --- a/src/common/transformations/include/transformations/common_optimizations/softmax_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/softmax_fusion.hpp @@ -103,6 +103,6 @@ class TRANSFORMATIONS_API SoftmaxFusion; class ov::pass::SoftmaxFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SoftmaxFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("SoftmaxFusion"); SoftmaxFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/softplus_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/softplus_fusion.hpp index 44d34dcdcc4c90..3dbadc5c2b6046 100644 --- a/src/common/transformations/include/transformations/common_optimizations/softplus_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/softplus_fusion.hpp @@ -25,6 +25,6 @@ class TRANSFORMATIONS_API SoftPlusFusion; */ class ov::pass::SoftPlusFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SoftPlusFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("SoftPlusFusion"); SoftPlusFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/softplus_to_mish_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/softplus_to_mish_fusion.hpp index 6a6d247e4ea351..cbc0194ad20c62 100644 --- a/src/common/transformations/include/transformations/common_optimizations/softplus_to_mish_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/softplus_to_mish_fusion.hpp @@ -25,6 +25,6 @@ class TRANSFORMATIONS_API SoftPlusToMishFusion; */ class ov::pass::SoftPlusToMishFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SoftPlusToMishFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("SoftPlusToMishFusion"); SoftPlusToMishFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/space_to_batch_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/space_to_batch_fusion.hpp index 43cf4654628cf5..aa95f690512b42 100644 --- a/src/common/transformations/include/transformations/common_optimizations/space_to_batch_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/space_to_batch_fusion.hpp @@ -32,6 +32,6 @@ class TRANSFORMATIONS_API SpaceToBatchFusion; class ov::pass::SpaceToBatchFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SpaceToBatchFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("SpaceToBatchFusion"); SpaceToBatchFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/split_concat_pair_to_interpolate_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/split_concat_pair_to_interpolate_fusion.hpp index e9ecba4fe6e961..72887dd32d9008 100644 --- a/src/common/transformations/include/transformations/common_optimizations/split_concat_pair_to_interpolate_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/split_concat_pair_to_interpolate_fusion.hpp @@ -25,6 +25,6 @@ class TRANSFORMATIONS_API SplitConcatPairToInterpolateFusion; */ class ov::pass::SplitConcatPairToInterpolateFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SplitConcatPairToInterpolateFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("SplitConcatPairToInterpolateFusion"); SplitConcatPairToInterpolateFusion(bool use_shape_for_elimination = true); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/split_squeeze_concat_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/split_squeeze_concat_fusion.hpp index 24073c6a61e2dc..3cd3c9429be0f1 100644 --- a/src/common/transformations/include/transformations/common_optimizations/split_squeeze_concat_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/split_squeeze_concat_fusion.hpp @@ -25,6 +25,6 @@ class TRANSFORMATIONS_API SplitSqueezeConcatFusion; */ class ov::pass::SplitSqueezeConcatFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SplitSqueezeConcatFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("SplitSqueezeConcatFusion"); SplitSqueezeConcatFusion(bool use_shapes); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/strides_optimization.hpp b/src/common/transformations/include/transformations/common_optimizations/strides_optimization.hpp index 57f5036fe5faa7..c16c5186afe213 100644 --- a/src/common/transformations/include/transformations/common_optimizations/strides_optimization.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/strides_optimization.hpp @@ -28,7 +28,7 @@ class TRANSFORMATIONS_API StridesOptimization; */ class ov::pass::ConvStridesPropagation : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvStridesPropagation", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvStridesPropagation"); ConvStridesPropagation(); }; @@ -40,7 +40,7 @@ class ov::pass::ConvStridesPropagation : public ov::pass::MatcherPass { */ class ov::pass::SupportedNodesStridesPropagation : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SupportedNodesStridesPropagation", "0"); + OPENVINO_MATCHER_PASS_RTTI("SupportedNodesStridesPropagation"); SupportedNodesStridesPropagation(); }; @@ -51,7 +51,7 @@ class ov::pass::SupportedNodesStridesPropagation : public ov::pass::MatcherPass */ class ov::pass::UnsupportedNodesStridesPropagation : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("UnsupportedNodesStridesPropagation", "0"); + OPENVINO_MATCHER_PASS_RTTI("UnsupportedNodesStridesPropagation"); UnsupportedNodesStridesPropagation(); }; @@ -62,6 +62,6 @@ class ov::pass::UnsupportedNodesStridesPropagation : public ov::pass::MatcherPas */ class ov::pass::StridesOptimization : public ov::pass::BackwardGraphRewrite { public: - OPENVINO_RTTI("StridesOptimization", "0"); + OPENVINO_RTTI("StridesOptimization", "0", ov::pass::BackwardGraphRewrite); StridesOptimization(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/subtract_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/subtract_fusion.hpp index 69e4095b6becd7..1963f226b830be 100644 --- a/src/common/transformations/include/transformations/common_optimizations/subtract_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/subtract_fusion.hpp @@ -24,6 +24,6 @@ class TRANSFORMATIONS_API SubtractFusion; */ class ov::pass::SubtractFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SubtractFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("SubtractFusion"); SubtractFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/swish_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/swish_fusion.hpp index a630e1998e84ca..59333215cbe814 100644 --- a/src/common/transformations/include/transformations/common_optimizations/swish_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/swish_fusion.hpp @@ -28,7 +28,7 @@ class TRANSFORMATIONS_API SwishFusionWithoutBeta; */ class ov::pass::SwishFusionWithSigmoid : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SwishFusionWithSigmoid", "0"); + OPENVINO_MATCHER_PASS_RTTI("SwishFusionWithSigmoid"); SwishFusionWithSigmoid(); }; @@ -38,7 +38,7 @@ class ov::pass::SwishFusionWithSigmoid : public ov::pass::MatcherPass { */ class ov::pass::SwishFusionWithSigmoidWithBeta : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SwishFusionWithSigmoidWithBeta", "0"); + OPENVINO_MATCHER_PASS_RTTI("SwishFusionWithSigmoidWithBeta"); SwishFusionWithSigmoidWithBeta(); }; @@ -48,7 +48,7 @@ class ov::pass::SwishFusionWithSigmoidWithBeta : public ov::pass::MatcherPass { */ class ov::pass::SwishFusionWithBeta : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SwishFusionWithBeta", "0"); + OPENVINO_MATCHER_PASS_RTTI("SwishFusionWithBeta"); SwishFusionWithBeta(); }; @@ -58,7 +58,7 @@ class ov::pass::SwishFusionWithBeta : public ov::pass::MatcherPass { */ class ov::pass::SwishFusionWithoutBeta : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SwishFusionWithoutBeta", "0"); + OPENVINO_MATCHER_PASS_RTTI("SwishFusionWithoutBeta"); SwishFusionWithoutBeta(); }; @@ -68,7 +68,7 @@ class ov::pass::SwishFusionWithoutBeta : public ov::pass::MatcherPass { */ class ov::pass::SwishFusion : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("SwishFusion", "0"); + OPENVINO_RTTI("SwishFusion", "0", ov::pass::GraphRewrite); SwishFusion() { add_matcher(); add_matcher(); diff --git a/src/common/transformations/include/transformations/common_optimizations/transpose_reshape_elimination_for_matmul.hpp b/src/common/transformations/include/transformations/common_optimizations/transpose_reshape_elimination_for_matmul.hpp index c1299872c4b3a5..b250ce1d3c3866 100644 --- a/src/common/transformations/include/transformations/common_optimizations/transpose_reshape_elimination_for_matmul.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/transpose_reshape_elimination_for_matmul.hpp @@ -26,6 +26,6 @@ class TRANSFORMATIONS_API TransposeReshapeEliminationForMatmul; */ class ov::pass::TransposeReshapeEliminationForMatmul : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TransposeReshapeEliminationForMatmul", "0"); + OPENVINO_MATCHER_PASS_RTTI("TransposeReshapeEliminationForMatmul"); TransposeReshapeEliminationForMatmul(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/transpose_sinking.hpp b/src/common/transformations/include/transformations/common_optimizations/transpose_sinking.hpp index 8189535fe260ae..ccb33f1445999e 100644 --- a/src/common/transformations/include/transformations/common_optimizations/transpose_sinking.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/transpose_sinking.hpp @@ -29,7 +29,7 @@ class TRANSFORMATIONS_API TransposeFuse; */ class ov::pass::TransposeReduction : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TransposeReduction", "0"); + OPENVINO_MATCHER_PASS_RTTI("TransposeReduction"); TransposeReduction(); }; @@ -40,7 +40,7 @@ class ov::pass::TransposeReduction : public ov::pass::MatcherPass { */ class ov::pass::TransposeFQReduction : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TransposeFQReduction", "0"); + OPENVINO_MATCHER_PASS_RTTI("TransposeFQReduction"); TransposeFQReduction(); }; @@ -50,7 +50,7 @@ class ov::pass::TransposeFQReduction : public ov::pass::MatcherPass { */ class ov::pass::TransposeConvert : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TransposeConvert", "0"); + OPENVINO_MATCHER_PASS_RTTI("TransposeConvert"); TransposeConvert(); }; @@ -60,7 +60,7 @@ class ov::pass::TransposeConvert : public ov::pass::MatcherPass { */ class ov::pass::TransposeEltwise : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TransposeEltwise", "0"); + OPENVINO_MATCHER_PASS_RTTI("TransposeEltwise"); TransposeEltwise(); }; @@ -71,7 +71,7 @@ class ov::pass::TransposeEltwise : public ov::pass::MatcherPass { */ class ov::pass::TransposeFuse : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TransposeFuse", "0"); + OPENVINO_MATCHER_PASS_RTTI("TransposeFuse"); TransposeFuse(); }; @@ -81,7 +81,7 @@ class ov::pass::TransposeFuse : public ov::pass::MatcherPass { */ class ov::pass::TransposeSinking : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("TransposeSinking", "0"); + OPENVINO_RTTI("TransposeSinking", "0", ov::pass::GraphRewrite); TransposeSinking() { add_matcher(); add_matcher(); diff --git a/src/common/transformations/include/transformations/common_optimizations/transpose_to_reshape.hpp b/src/common/transformations/include/transformations/common_optimizations/transpose_to_reshape.hpp index aba6154bb0b58c..3a99d47858ec6f 100644 --- a/src/common/transformations/include/transformations/common_optimizations/transpose_to_reshape.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/transpose_to_reshape.hpp @@ -24,6 +24,6 @@ class TRANSFORMATIONS_API TransposeToReshape; */ class ov::pass::TransposeToReshape : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TransposeToReshape", "0"); + OPENVINO_MATCHER_PASS_RTTI("TransposeToReshape"); TransposeToReshape(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/weights_dequantize_to_fake_quantize.hpp b/src/common/transformations/include/transformations/common_optimizations/weights_dequantize_to_fake_quantize.hpp index aa34c7859d068a..1b77d8f519d391 100644 --- a/src/common/transformations/include/transformations/common_optimizations/weights_dequantize_to_fake_quantize.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/weights_dequantize_to_fake_quantize.hpp @@ -28,6 +28,6 @@ class TRANSFORMATIONS_API WeightsDequantizeToFakeQuantize; */ class ov::pass::WeightsDequantizeToFakeQuantize : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("WeightsDequantizeToFakeQuantize", "0"); + OPENVINO_MATCHER_PASS_RTTI("WeightsDequantizeToFakeQuantize"); WeightsDequantizeToFakeQuantize(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/wrap_interpolate_into_transposes.hpp b/src/common/transformations/include/transformations/common_optimizations/wrap_interpolate_into_transposes.hpp index 7b35498d5dde64..e0ef8b68bdaf04 100644 --- a/src/common/transformations/include/transformations/common_optimizations/wrap_interpolate_into_transposes.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/wrap_interpolate_into_transposes.hpp @@ -35,6 +35,6 @@ class TRANSFORMATIONS_API WrapInterpolateIntoTransposes; */ class ov::pass::WrapInterpolateIntoTransposes : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("WrapInterpolateIntoTransposes", "0"); + OPENVINO_MATCHER_PASS_RTTI("WrapInterpolateIntoTransposes"); WrapInterpolateIntoTransposes(); }; diff --git a/src/common/transformations/include/transformations/control_flow/unroll_if.hpp b/src/common/transformations/include/transformations/control_flow/unroll_if.hpp index e59b60106e2536..b55ade9e6b88c6 100644 --- a/src/common/transformations/include/transformations/control_flow/unroll_if.hpp +++ b/src/common/transformations/include/transformations/control_flow/unroll_if.hpp @@ -26,6 +26,6 @@ class TRANSFORMATIONS_API UnrollIf; class ov::pass::UnrollIf : public ov::pass::ModelPass { public: - OPENVINO_RTTI("UnrollIf", "0"); + OPENVINO_RTTI("UnrollIf", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; diff --git a/src/common/transformations/include/transformations/control_flow/unroll_tensor_iterator.hpp b/src/common/transformations/include/transformations/control_flow/unroll_tensor_iterator.hpp index 282aecab5c7f05..89c500cd0a55f8 100644 --- a/src/common/transformations/include/transformations/control_flow/unroll_tensor_iterator.hpp +++ b/src/common/transformations/include/transformations/control_flow/unroll_tensor_iterator.hpp @@ -28,6 +28,6 @@ class TRANSFORMATIONS_API UnrollTensorIterator; class ov::pass::UnrollTensorIterator : public ov::pass::ModelPass { public: - OPENVINO_RTTI("UnrollTensorIterator", "0"); + OPENVINO_RTTI("UnrollTensorIterator", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; diff --git a/src/common/transformations/include/transformations/convert_precision.hpp b/src/common/transformations/include/transformations/convert_precision.hpp index 30f773da9e3be4..6aa4ae58bf610c 100644 --- a/src/common/transformations/include/transformations/convert_precision.hpp +++ b/src/common/transformations/include/transformations/convert_precision.hpp @@ -79,7 +79,7 @@ using type_to_fuse_map = class ov::pass::ConvertPrecision : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ConvertPrecision", "0"); + OPENVINO_RTTI("ConvertPrecision", "0", ov::pass::ModelPass); ConvertPrecision(ov::element::Type_t from, ov::element::Type_t to, type_to_fuse_map additional_type_to_fuse_map = {}, diff --git a/src/common/transformations/include/transformations/flush_fp32_subnormals_to_zero.hpp b/src/common/transformations/include/transformations/flush_fp32_subnormals_to_zero.hpp index 71c71b0614f29d..b9522d4a4273dd 100644 --- a/src/common/transformations/include/transformations/flush_fp32_subnormals_to_zero.hpp +++ b/src/common/transformations/include/transformations/flush_fp32_subnormals_to_zero.hpp @@ -25,6 +25,6 @@ class TRANSFORMATIONS_API FlushFP32SubnormalsToZero; */ class ov::pass::FlushFP32SubnormalsToZero : public MatcherPass { public: - OPENVINO_RTTI("FlushFP32SubnormalsToZero", "0"); + OPENVINO_MATCHER_PASS_RTTI("FlushFP32SubnormalsToZero"); FlushFP32SubnormalsToZero(); }; diff --git a/src/common/transformations/include/transformations/fp16_compression/align_mixed_fp32_fp16_types.hpp b/src/common/transformations/include/transformations/fp16_compression/align_mixed_fp32_fp16_types.hpp index 4fd93d7742ab67..f64e4105000b86 100644 --- a/src/common/transformations/include/transformations/fp16_compression/align_mixed_fp32_fp16_types.hpp +++ b/src/common/transformations/include/transformations/fp16_compression/align_mixed_fp32_fp16_types.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API AlignMixedFP32FP16Types; */ class ov::pass::AlignMixedFP32FP16Types : public ov::pass::ModelPass { public: - OPENVINO_RTTI("AlignMixedFP32FP16Types", "0"); + OPENVINO_RTTI("AlignMixedFP32FP16Types", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; diff --git a/src/common/transformations/include/transformations/fp16_compression/convert_compression_only_to_legacy.hpp b/src/common/transformations/include/transformations/fp16_compression/convert_compression_only_to_legacy.hpp index fbac44f637a2a2..2ae26d20f65482 100644 --- a/src/common/transformations/include/transformations/fp16_compression/convert_compression_only_to_legacy.hpp +++ b/src/common/transformations/include/transformations/fp16_compression/convert_compression_only_to_legacy.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API ConvertCompressedOnlyToLegacy; */ class ov::pass::ConvertCompressedOnlyToLegacy : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ConvertCompressedOnlyToLegacy", "0"); + OPENVINO_RTTI("ConvertCompressedOnlyToLegacy", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& f) override; }; diff --git a/src/common/transformations/include/transformations/fp16_compression/mark_decompression_convert_constant_folding.hpp b/src/common/transformations/include/transformations/fp16_compression/mark_decompression_convert_constant_folding.hpp index 4f003dbc09e671..df5ebddcba2c5a 100644 --- a/src/common/transformations/include/transformations/fp16_compression/mark_decompression_convert_constant_folding.hpp +++ b/src/common/transformations/include/transformations/fp16_compression/mark_decompression_convert_constant_folding.hpp @@ -26,7 +26,7 @@ class TRANSFORMATIONS_API MarkCompressedFloatConstants; */ class ov::pass::EnableDecompressionConvertConstantFolding : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EnableDecompressionConvertConstantFolding", "0"); + OPENVINO_MATCHER_PASS_RTTI("EnableDecompressionConvertConstantFolding"); EnableDecompressionConvertConstantFolding(); }; @@ -36,7 +36,7 @@ class ov::pass::EnableDecompressionConvertConstantFolding : public ov::pass::Mat */ class ov::pass::DisableDecompressionConvertConstantFolding : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("DisableDecompressionConvertConstantFolding", "0"); + OPENVINO_MATCHER_PASS_RTTI("DisableDecompressionConvertConstantFolding"); DisableDecompressionConvertConstantFolding(); }; @@ -46,7 +46,7 @@ class ov::pass::DisableDecompressionConvertConstantFolding : public ov::pass::Ma */ class ov::pass::KeepConstAndDecompression : public MatcherPass { public: - OPENVINO_RTTI("KeepConstAndDecompression", "0"); + OPENVINO_MATCHER_PASS_RTTI("KeepConstAndDecompression"); KeepConstAndDecompression(); }; @@ -56,7 +56,7 @@ class ov::pass::KeepConstAndDecompression : public MatcherPass { */ class ov::pass::KeepConstantsPrecisionAndAddConverts : public MatcherPass { public: - OPENVINO_RTTI("KeepConstantsPrecisionAndAddConverts", "0"); + OPENVINO_MATCHER_PASS_RTTI("KeepConstantsPrecisionAndAddConverts"); KeepConstantsPrecisionAndAddConverts(); }; @@ -69,6 +69,6 @@ class ov::pass::KeepConstantsPrecisionAndAddConverts : public MatcherPass { */ class ov::pass::MarkCompressedFloatConstants : public MatcherPass { public: - OPENVINO_RTTI("KeepFWPrecisionFor16BitFloatConstants", "0"); + OPENVINO_MATCHER_PASS_RTTI("KeepFWPrecisionFor16BitFloatConstants"); MarkCompressedFloatConstants(); }; diff --git a/src/common/transformations/include/transformations/fp16_compression/mark_floatpoint_range.hpp b/src/common/transformations/include/transformations/fp16_compression/mark_floatpoint_range.hpp index a61bd270c584ec..c1f948299c4321 100644 --- a/src/common/transformations/include/transformations/fp16_compression/mark_floatpoint_range.hpp +++ b/src/common/transformations/include/transformations/fp16_compression/mark_floatpoint_range.hpp @@ -18,7 +18,7 @@ namespace pass { */ class TRANSFORMATIONS_API MarkFloatingPointRange : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MarkFloatingPointRange", "0"); + OPENVINO_MATCHER_PASS_RTTI("MarkFloatingPointRange"); MarkFloatingPointRange(); }; @@ -27,4 +27,4 @@ OPENVINO_API bool is_range_path(const std::shared_ptr& node); OPENVINO_API void erase_range_path(const std::shared_ptr& node); } // namespace pass -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/common/transformations/include/transformations/fp16_compression/mark_subgraphs_to_keep_in_mixed_precision.hpp b/src/common/transformations/include/transformations/fp16_compression/mark_subgraphs_to_keep_in_mixed_precision.hpp index 0ffce989f0d83c..ba0780a2088077 100644 --- a/src/common/transformations/include/transformations/fp16_compression/mark_subgraphs_to_keep_in_mixed_precision.hpp +++ b/src/common/transformations/include/transformations/fp16_compression/mark_subgraphs_to_keep_in_mixed_precision.hpp @@ -25,6 +25,6 @@ constexpr auto float16_min_normalized = float16::from_bits(0x0400); */ class ov::pass::MarkSugraphsToKeepInMixedPrecision : public ov::pass::ModelPass { public: - OPENVINO_RTTI("MarkSugraphsToKeepInMixedPrecision", "0"); + OPENVINO_RTTI("MarkSugraphsToKeepInMixedPrecision", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; diff --git a/src/common/transformations/include/transformations/hash.hpp b/src/common/transformations/include/transformations/hash.hpp index 73668c7e53548e..36c661b80272fc 100644 --- a/src/common/transformations/include/transformations/hash.hpp +++ b/src/common/transformations/include/transformations/hash.hpp @@ -18,7 +18,7 @@ namespace pass { */ class TRANSFORMATIONS_API Hash : public ov::pass::ModelPass { public: - OPENVINO_RTTI("HashPass"); + OPENVINO_RTTI("HashPass", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& f) override; diff --git a/src/common/transformations/include/transformations/init_node_info.hpp b/src/common/transformations/include/transformations/init_node_info.hpp index e458bcfdcd4bd4..211b68796f6342 100644 --- a/src/common/transformations/include/transformations/init_node_info.hpp +++ b/src/common/transformations/include/transformations/init_node_info.hpp @@ -35,6 +35,6 @@ class TRANSFORMATIONS_API InitNodeInfo; */ class ov::pass::InitNodeInfo : public ov::pass::ModelPass { public: - OPENVINO_RTTI("InitNodeInfo", "0"); + OPENVINO_RTTI("InitNodeInfo", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; diff --git a/src/common/transformations/include/transformations/low_precision/mark_dequantization_subgraph.hpp b/src/common/transformations/include/transformations/low_precision/mark_dequantization_subgraph.hpp index 8b9b9e573ba957..119310157e2833 100644 --- a/src/common/transformations/include/transformations/low_precision/mark_dequantization_subgraph.hpp +++ b/src/common/transformations/include/transformations/low_precision/mark_dequantization_subgraph.hpp @@ -21,7 +21,7 @@ namespace pass { */ class TRANSFORMATIONS_API MarkDequantizationSubgraph : public MatcherPass { public: - OPENVINO_RTTI("MarkDequantizationSubgraph", "0"); + OPENVINO_MATCHER_PASS_RTTI("MarkDequantizationSubgraph"); MarkDequantizationSubgraph(const element::TypeVector& precisions, const bool fold_subtract_const = false, const bool disable_fold_multiply_const = false); diff --git a/src/common/transformations/include/transformations/op_conversions/batch_norm_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/batch_norm_decomposition.hpp index 9f4399804c50ff..362b946554e17d 100644 --- a/src/common/transformations/include/transformations/op_conversions/batch_norm_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/batch_norm_decomposition.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API BatchNormDecomposition; class ov::pass::BatchNormDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("BatchNormDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("BatchNormDecomposition"); BatchNormDecomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/bidirectional_sequences_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/bidirectional_sequences_decomposition.hpp index 2a1234ef7c041e..f60a6866762b0b 100644 --- a/src/common/transformations/include/transformations/op_conversions/bidirectional_sequences_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/bidirectional_sequences_decomposition.hpp @@ -31,7 +31,7 @@ class TRANSFORMATIONS_API BidirectionalRNNSequenceDecomposition; class ov::pass::BidirectionalLSTMSequenceDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("BidirectionalLSTMSequenceDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("BidirectionalLSTMSequenceDecomposition"); BidirectionalLSTMSequenceDecomposition(); }; @@ -43,7 +43,7 @@ class ov::pass::BidirectionalLSTMSequenceDecomposition : public ov::pass::Matche class ov::pass::BidirectionalGRUSequenceDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("BidirectionalGRUSequenceDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("BidirectionalGRUSequenceDecomposition"); BidirectionalGRUSequenceDecomposition(); }; @@ -55,7 +55,7 @@ class ov::pass::BidirectionalGRUSequenceDecomposition : public ov::pass::Matcher class ov::pass::BidirectionalRNNSequenceDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("BidirectionalRNNSequenceDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("BidirectionalRNNSequenceDecomposition"); BidirectionalRNNSequenceDecomposition(); }; @@ -67,7 +67,7 @@ class ov::pass::BidirectionalRNNSequenceDecomposition : public ov::pass::Matcher class ov::pass::BidirectionalSequenceDecomposition : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("BidirectionalSequenceDecomposition", "0"); + OPENVINO_RTTI("BidirectionalSequenceDecomposition", "0", ov::pass::GraphRewrite); BidirectionalSequenceDecomposition() { add_matcher(); add_matcher(); diff --git a/src/common/transformations/include/transformations/op_conversions/convert_avgpool_downgrade.hpp b/src/common/transformations/include/transformations/op_conversions/convert_avgpool_downgrade.hpp index 40f4e32b60af7e..1db9706fb8c776 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_avgpool_downgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_avgpool_downgrade.hpp @@ -15,7 +15,7 @@ namespace pass { */ class TRANSFORMATIONS_API ConvertAvgPool14ToAvgPool1 : public MatcherPass { public: - OPENVINO_RTTI("ConvertAvgPool14ToAvgPool1", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertAvgPool14ToAvgPool1"); ConvertAvgPool14ToAvgPool1(); }; } // namespace pass diff --git a/src/common/transformations/include/transformations/op_conversions/convert_batch_to_space.hpp b/src/common/transformations/include/transformations/op_conversions/convert_batch_to_space.hpp index f2792b467a96e0..2ecc2b8f9ced75 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_batch_to_space.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_batch_to_space.hpp @@ -33,7 +33,7 @@ class TRANSFORMATIONS_API ConvertBatchToSpace; class ov::pass::ConvertBatchToSpace : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertBatchToSpace", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertBatchToSpace"); explicit ConvertBatchToSpace(bool convert_by_elements = true) : MatcherPass() { if (convert_by_elements) convert_batch_to_space_by_elements(); diff --git a/src/common/transformations/include/transformations/op_conversions/convert_bitwise_to_logical_bool.hpp b/src/common/transformations/include/transformations/op_conversions/convert_bitwise_to_logical_bool.hpp index 897bf9ea70fac0..cf5bc83526161a 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_bitwise_to_logical_bool.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_bitwise_to_logical_bool.hpp @@ -18,22 +18,22 @@ class TRANSFORMATIONS_API ConvertBitwiseXorToLogicalXor; class ov::pass::ConvertBitwiseAndToLogicalAnd : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertBitwiseAndToLogicalAnd", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertBitwiseAndToLogicalAnd"); ConvertBitwiseAndToLogicalAnd(); }; class ov::pass::ConvertBitwiseNotToLogicalNot : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertBitwiseNotToLogicalNot", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertBitwiseNotToLogicalNot"); ConvertBitwiseNotToLogicalNot(); }; class ov::pass::ConvertBitwiseOrToLogicalOr : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertBitwiseOrToLogicalOr", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertBitwiseOrToLogicalOr"); ConvertBitwiseOrToLogicalOr(); }; class ov::pass::ConvertBitwiseXorToLogicalXor : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertBitwiseXorToLogicalXor", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertBitwiseXorToLogicalXor"); ConvertBitwiseXorToLogicalXor(); }; /** @@ -43,7 +43,7 @@ class ov::pass::ConvertBitwiseXorToLogicalXor : public ov::pass::MatcherPass { */ class ConvertBitwiseToLogical : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("ConvertBitwiseToLogical", "0"); + OPENVINO_RTTI("ConvertBitwiseToLogical", "0", ov::pass::GraphRewrite); ConvertBitwiseToLogical() { add_matcher(); add_matcher(); diff --git a/src/common/transformations/include/transformations/op_conversions/convert_broadcast3.hpp b/src/common/transformations/include/transformations/op_conversions/convert_broadcast3.hpp index 06687b9e07ba01..7518f26f5d0cbc 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_broadcast3.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_broadcast3.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API ConvertBroadcast3; class ov::pass::ConvertBroadcast3 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertBroadcast3", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertBroadcast3"); ConvertBroadcast3(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_broadcast_to_tiles.hpp b/src/common/transformations/include/transformations/op_conversions/convert_broadcast_to_tiles.hpp index 5d5934b33e8216..5c1f374bcb724c 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_broadcast_to_tiles.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_broadcast_to_tiles.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API ConvertBroadcastToTiles; class ov::pass::ConvertBroadcastToTiles : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertBroadcastToTiles", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertBroadcastToTiles"); ConvertBroadcastToTiles(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_convertlike.hpp b/src/common/transformations/include/transformations/op_conversions/convert_convertlike.hpp index dfe5e5e7424d90..5952fc114b76fd 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_convertlike.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_convertlike.hpp @@ -17,6 +17,6 @@ class TRANSFORMATIONS_API ConvertConvertLike; class ov::pass::ConvertConvertLike : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertConvertLike", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertConvertLike"); ConvertConvertLike(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_convertpromotetypes.hpp b/src/common/transformations/include/transformations/op_conversions/convert_convertpromotetypes.hpp index c4d95f1211bea5..bb6a593b588ffc 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_convertpromotetypes.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_convertpromotetypes.hpp @@ -19,6 +19,6 @@ class TRANSFORMATIONS_API ConvertConvertPromoteTypes; /// element type. class ov::pass::ConvertConvertPromoteTypes : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertConvertPromoteTypes", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertConvertPromoteTypes"); ConvertConvertPromoteTypes(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_deformable_conv_v8_to_v1.hpp b/src/common/transformations/include/transformations/op_conversions/convert_deformable_conv_v8_to_v1.hpp index 7db239e18d265a..37cf1935d85fbe 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_deformable_conv_v8_to_v1.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_deformable_conv_v8_to_v1.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API ConvertDeformableConv8To1; */ class ov::pass::ConvertDeformableConv8To1 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertDeformableConv8To1", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertDeformableConv8To1"); ConvertDeformableConv8To1(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_depth_to_space.hpp b/src/common/transformations/include/transformations/op_conversions/convert_depth_to_space.hpp index 481006b7a05822..dc6124c4f6be2e 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_depth_to_space.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_depth_to_space.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API ConvertDepthToSpace; class ov::pass::ConvertDepthToSpace : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertDepthToSpace", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertDepthToSpace"); ConvertDepthToSpace(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_divide.hpp b/src/common/transformations/include/transformations/op_conversions/convert_divide.hpp index 66442bbdc123da..e0526bfd815745 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_divide.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_divide.hpp @@ -21,12 +21,12 @@ class TRANSFORMATIONS_API ConvertDivideWithConstant; class ov::pass::ConvertDivide : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertDivide", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertDivide"); ConvertDivide(); }; class ov::pass::ConvertDivideWithConstant : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertDivideWithConstant", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertDivideWithConstant"); ConvertDivideWithConstant(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_embedding_bag_offsets15_downgrade.hpp b/src/common/transformations/include/transformations/op_conversions/convert_embedding_bag_offsets15_downgrade.hpp index 6ddbff4b7991b6..cbe39419438c52 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_embedding_bag_offsets15_downgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_embedding_bag_offsets15_downgrade.hpp @@ -15,7 +15,7 @@ namespace pass { */ class TRANSFORMATIONS_API ConvertEmbeddingBagOffsets15ToEmbeddingBagOffsetsSum3 : public MatcherPass { public: - OPENVINO_RTTI("ConvertEmbeddingBagOffsets15ToEmbeddingBagOffsetsSum3", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertEmbeddingBagOffsets15ToEmbeddingBagOffsetsSum3"); ConvertEmbeddingBagOffsets15ToEmbeddingBagOffsetsSum3(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_embedding_bag_packed15_downgrade.hpp b/src/common/transformations/include/transformations/op_conversions/convert_embedding_bag_packed15_downgrade.hpp index a925928a28a3d8..eb8b5ddf93435c 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_embedding_bag_packed15_downgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_embedding_bag_packed15_downgrade.hpp @@ -15,7 +15,7 @@ namespace pass { */ class TRANSFORMATIONS_API ConvertEmbeddingBagPacked15ToEmbeddingBagPackedSum3 : public MatcherPass { public: - OPENVINO_RTTI("ConvertEmbeddingBagPacked15ToEmbeddingBagPackedSum3", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertEmbeddingBagPacked15ToEmbeddingBagPackedSum3"); ConvertEmbeddingBagPacked15ToEmbeddingBagPackedSum3(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_gather_0d.hpp b/src/common/transformations/include/transformations/op_conversions/convert_gather_0d.hpp index 75f9dd967d48c8..9a1798e4319fe1 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_gather_0d.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_gather_0d.hpp @@ -25,6 +25,6 @@ class TRANSFORMATIONS_API ConvertGather0D; */ class ov::pass::ConvertGather0D : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertGather0D", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertGather0D"); ConvertGather0D(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_gather_downgrade.hpp b/src/common/transformations/include/transformations/op_conversions/convert_gather_downgrade.hpp index dfdbed915679b2..966175079ad30d 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_gather_downgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_gather_downgrade.hpp @@ -22,7 +22,7 @@ class TRANSFORMATIONS_API ConvertGather8ToGather7; */ class ov::pass::ConvertGather7ToGather1 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertGather7ToGather1", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertGather7ToGather1"); ConvertGather7ToGather1(); }; @@ -32,6 +32,6 @@ class ov::pass::ConvertGather7ToGather1 : public ov::pass::MatcherPass { */ class ov::pass::ConvertGather8ToGather7 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertGather8ToGather7", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertGather8ToGather7"); ConvertGather8ToGather7(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_gather_to_compressed.hpp b/src/common/transformations/include/transformations/op_conversions/convert_gather_to_compressed.hpp index a916e9a4b91a44..edfdd3d5a07146 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_gather_to_compressed.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_gather_to_compressed.hpp @@ -17,6 +17,6 @@ class TRANSFORMATIONS_API ConvertGatherToGatherCompressed; class ov::pass::ConvertGatherToGatherCompressed : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertGatherToGatherCompressed", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertGatherToGatherCompressed"); ConvertGatherToGatherCompressed(); -}; \ No newline at end of file +}; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_gather_upgrade.hpp b/src/common/transformations/include/transformations/op_conversions/convert_gather_upgrade.hpp index ec8f8be61c3015..1c04190f4d7d0f 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_gather_upgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_gather_upgrade.hpp @@ -23,7 +23,7 @@ class TRANSFORMATIONS_API ConvertGather7ToGather8; */ class ov::pass::ConvertGather1ToGather7 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertGather1ToGather7", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertGather1ToGather7"); ConvertGather1ToGather7(); }; @@ -33,6 +33,6 @@ class ov::pass::ConvertGather1ToGather7 : public ov::pass::MatcherPass { */ class ov::pass::ConvertGather7ToGather8 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertGather7ToGather8", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertGather7ToGather8"); ConvertGather7ToGather8(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_gelu.hpp b/src/common/transformations/include/transformations/op_conversions/convert_gelu.hpp index 498872814f9cbb..dd9334381b3d8e 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_gelu.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_gelu.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API ConvertGELU; class ov::pass::ConvertGELU : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertGELU", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertGELU"); ConvertGELU(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_gp9_to_gp_ie_internal.hpp b/src/common/transformations/include/transformations/op_conversions/convert_gp9_to_gp_ie_internal.hpp index 9fe62aad7fbd8c..a2c82137387172 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_gp9_to_gp_ie_internal.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_gp9_to_gp_ie_internal.hpp @@ -17,6 +17,6 @@ class TRANSFORMATIONS_API ConvertGP9ToGPIEInternal; class ov::pass::ConvertGP9ToGPIEInternal : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertGP9ToGPIEInternal", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertGP9ToGPIEInternal"); ConvertGP9ToGPIEInternal(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_interpolate11_downgrade.hpp b/src/common/transformations/include/transformations/op_conversions/convert_interpolate11_downgrade.hpp index 8c136aa918f5f0..edca5bee3f215b 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_interpolate11_downgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_interpolate11_downgrade.hpp @@ -16,7 +16,7 @@ namespace pass { */ class TRANSFORMATIONS_API ConvertInterpolate11ToInterpolate4 : public MatcherPass { public: - OPENVINO_RTTI("ConvertInterpolate11ToInterpolate4", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertInterpolate11ToInterpolate4"); ConvertInterpolate11ToInterpolate4(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_interpolate1_to_interpolate4.hpp b/src/common/transformations/include/transformations/op_conversions/convert_interpolate1_to_interpolate4.hpp index f3b07c36962ccd..48822472ecbfd9 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_interpolate1_to_interpolate4.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_interpolate1_to_interpolate4.hpp @@ -25,6 +25,6 @@ class TRANSFORMATIONS_API ConvertInterpolate1ToInterpolate4; */ class ov::pass::ConvertInterpolate1ToInterpolate4 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertInterpolate1ToInterpolate4", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertInterpolate1ToInterpolate4"); ConvertInterpolate1ToInterpolate4(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_matrix_nms_to_matrix_nms_ie.hpp b/src/common/transformations/include/transformations/op_conversions/convert_matrix_nms_to_matrix_nms_ie.hpp index 6d414139ad6f57..ea52625c9df1ae 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_matrix_nms_to_matrix_nms_ie.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_matrix_nms_to_matrix_nms_ie.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API ConvertMatrixNmsToMatrixNmsIE; class ov::pass::ConvertMatrixNmsToMatrixNmsIE : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertMatrixNmsToMatrixNmsIE", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertMatrixNmsToMatrixNmsIE"); ConvertMatrixNmsToMatrixNmsIE(bool force_i32_output_type = true); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_maxpool_downgrade.hpp b/src/common/transformations/include/transformations/op_conversions/convert_maxpool_downgrade.hpp index 953cbab8a801a7..fc778773825c5c 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_maxpool_downgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_maxpool_downgrade.hpp @@ -22,7 +22,7 @@ class TRANSFORMATIONS_API ConvertMaxPool14ToMaxPool8; */ class ov::pass::ConvertMaxPool8ToMaxPool1 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertMaxPool8ToMaxPool1"); + OPENVINO_MATCHER_PASS_RTTI("ConvertMaxPool8ToMaxPool1"); ConvertMaxPool8ToMaxPool1(); }; @@ -32,6 +32,6 @@ class ov::pass::ConvertMaxPool8ToMaxPool1 : public ov::pass::MatcherPass { */ class ov::pass::ConvertMaxPool14ToMaxPool8 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertMaxPool14ToMaxPool8", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertMaxPool14ToMaxPool8"); ConvertMaxPool14ToMaxPool8(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_maxpool_upgrade.hpp b/src/common/transformations/include/transformations/op_conversions/convert_maxpool_upgrade.hpp index 6e7eed21342584..538b04bc9e254c 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_maxpool_upgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_maxpool_upgrade.hpp @@ -22,6 +22,6 @@ class TRANSFORMATIONS_API ConvertMaxPool1ToMaxPool8; class ov::pass::ConvertMaxPool1ToMaxPool8 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertMaxPool1ToMaxPool8"); + OPENVINO_MATCHER_PASS_RTTI("ConvertMaxPool1ToMaxPool8"); ConvertMaxPool1ToMaxPool8(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_minimum_to_power_and_max.hpp b/src/common/transformations/include/transformations/op_conversions/convert_minimum_to_power_and_max.hpp index d092ffec29d8c4..95e9a8e4f171db 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_minimum_to_power_and_max.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_minimum_to_power_and_max.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API ConvertMinimum; class ov::pass::ConvertMinimum : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertMinimum", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertMinimum"); ConvertMinimum(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_mod.hpp b/src/common/transformations/include/transformations/op_conversions/convert_mod.hpp index 0fbd3bba723ecb..8c6cedbd67d635 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_mod.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_mod.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API ConvertMod; class ov::pass::ConvertMod : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertMod", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertMod"); ConvertMod(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_multiclass_nms_to_multiclass_nms_ie.hpp b/src/common/transformations/include/transformations/op_conversions/convert_multiclass_nms_to_multiclass_nms_ie.hpp index 361d2352928b7e..7bf4918f4438a6 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_multiclass_nms_to_multiclass_nms_ie.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_multiclass_nms_to_multiclass_nms_ie.hpp @@ -17,6 +17,6 @@ class TRANSFORMATIONS_API ConvertMulticlassNmsToMulticlassNmsIE; class ov::pass::ConvertMulticlassNmsToMulticlassNmsIE : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("public", "0"); + OPENVINO_MATCHER_PASS_RTTI("public"); ConvertMulticlassNmsToMulticlassNmsIE(bool force_i32_output_type = true); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_multiclass_nms_upgrade.hpp b/src/common/transformations/include/transformations/op_conversions/convert_multiclass_nms_upgrade.hpp index 1f3e9e9b5caf08..425ec26e78ccad 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_multiclass_nms_upgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_multiclass_nms_upgrade.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API ConvertMulticlassNms8ToMulticlassNms9; class ov::pass::ConvertMulticlassNms8ToMulticlassNms9 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertMulticlassNms8ToMulticlassNms9", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertMulticlassNms8ToMulticlassNms9"); ConvertMulticlassNms8ToMulticlassNms9(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_mvn1_to_mvn6.hpp b/src/common/transformations/include/transformations/op_conversions/convert_mvn1_to_mvn6.hpp index d958d166f7270d..9af05fa1f05891 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_mvn1_to_mvn6.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_mvn1_to_mvn6.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API ConvertMVN1ToMVN6; */ class ov::pass::ConvertMVN1ToMVN6 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertMVN1ToMVN6", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertMVN1ToMVN6"); ConvertMVN1ToMVN6(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_negative.hpp b/src/common/transformations/include/transformations/op_conversions/convert_negative.hpp index b985f4bfe7f639..71df6767812c35 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_negative.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_negative.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API ConvertNegative; class ov::pass::ConvertNegative : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertNegative", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertNegative"); ConvertNegative(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_nms9_to_nms_ie_internal.hpp b/src/common/transformations/include/transformations/op_conversions/convert_nms9_to_nms_ie_internal.hpp index fee970b6b44bfc..5bfd769e122e6b 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_nms9_to_nms_ie_internal.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_nms9_to_nms_ie_internal.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API ConvertNMS9ToNMSIEInternal; class ov::pass::ConvertNMS9ToNMSIEInternal : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertNMS9ToNMSIEInternal", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertNMS9ToNMSIEInternal"); ConvertNMS9ToNMSIEInternal(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_nms_rotated_to_nms_ie_internal.hpp b/src/common/transformations/include/transformations/op_conversions/convert_nms_rotated_to_nms_ie_internal.hpp index dcee03e513b38e..bf06c81e08e197 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_nms_rotated_to_nms_ie_internal.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_nms_rotated_to_nms_ie_internal.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API ConvertNMSRotatedToNMSIEInternal; class ov::pass::ConvertNMSRotatedToNMSIEInternal : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertNMSRotatedToNMSIEInternal", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertNMSRotatedToNMSIEInternal"); ConvertNMSRotatedToNMSIEInternal(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_nms_to_nms_ie_internal.hpp b/src/common/transformations/include/transformations/op_conversions/convert_nms_to_nms_ie_internal.hpp index ca205fe9078f7a..e8e34ce249d241 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_nms_to_nms_ie_internal.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_nms_to_nms_ie_internal.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API ConvertNMSToNMSIEInternal; class ov::pass::ConvertNMSToNMSIEInternal : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertNMSToNMSIEInternal", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertNMSToNMSIEInternal"); ConvertNMSToNMSIEInternal(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_pad12_downgrade.hpp b/src/common/transformations/include/transformations/op_conversions/convert_pad12_downgrade.hpp index 36ca9112b07829..263c71fb83dc76 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_pad12_downgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_pad12_downgrade.hpp @@ -15,7 +15,7 @@ namespace pass { */ class TRANSFORMATIONS_API ConvertPad12ToPad1 : public MatcherPass { public: - OPENVINO_RTTI("ConvertPad12ToPad1", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertPad12ToPad1"); ConvertPad12ToPad1(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_pad_to_group_conv.hpp b/src/common/transformations/include/transformations/op_conversions/convert_pad_to_group_conv.hpp index a89386bd7048cb..7c3f44a439ee6e 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_pad_to_group_conv.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_pad_to_group_conv.hpp @@ -30,6 +30,6 @@ class TRANSFORMATIONS_API ConvertPadToGroupConvolution; class ov::pass::ConvertPadToGroupConvolution : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertPadToGroupConvolution", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertPadToGroupConvolution"); ConvertPadToGroupConvolution(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_previous_nms_to_nms_5.hpp b/src/common/transformations/include/transformations/op_conversions/convert_previous_nms_to_nms_5.hpp index 8a4c0ee3110c1b..bc0d79220a5474 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_previous_nms_to_nms_5.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_previous_nms_to_nms_5.hpp @@ -22,18 +22,18 @@ class TRANSFORMATIONS_API ConvertNMS4ToNMS5; class ov::pass::ConvertNMS1ToNMS5 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertNMS1ToNMS5", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertNMS1ToNMS5"); ConvertNMS1ToNMS5(); }; class ov::pass::ConvertNMS3ToNMS5 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertNMS3ToNMS5", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertNMS3ToNMS5"); ConvertNMS3ToNMS5(); }; class ov::pass::ConvertNMS4ToNMS5 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertNMS4ToNMS5", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertNMS4ToNMS5"); ConvertNMS4ToNMS5(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_previous_nms_to_nms_9.hpp b/src/common/transformations/include/transformations/op_conversions/convert_previous_nms_to_nms_9.hpp index f77db7a03f8606..feff6577d6cb07 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_previous_nms_to_nms_9.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_previous_nms_to_nms_9.hpp @@ -23,24 +23,24 @@ class TRANSFORMATIONS_API ConvertNMS5ToNMS9; class ov::pass::ConvertNMS1ToNMS9 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertNMS1ToNMS9", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertNMS1ToNMS9"); ConvertNMS1ToNMS9(); }; class ov::pass::ConvertNMS3ToNMS9 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertNMS3ToNMS9", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertNMS3ToNMS9"); ConvertNMS3ToNMS9(); }; class ov::pass::ConvertNMS4ToNMS9 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertNMS4ToNMS9", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertNMS4ToNMS9"); ConvertNMS4ToNMS9(); }; class ov::pass::ConvertNMS5ToNMS9 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertNMS5ToNMS9", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertNMS5ToNMS9"); ConvertNMS5ToNMS9(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_prior_box_v8_to_v0.hpp b/src/common/transformations/include/transformations/op_conversions/convert_prior_box_v8_to_v0.hpp index 2725d789a83a70..435a96b8e1cbc7 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_prior_box_v8_to_v0.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_prior_box_v8_to_v0.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API ConvertPriorBox8To0; */ class ov::pass::ConvertPriorBox8To0 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertPriorBox8To0", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertPriorBox8To0"); ConvertPriorBox8To0(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_pooling.hpp b/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_pooling.hpp index 662660b926aa52..09400b1c3704bd 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_pooling.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_pooling.hpp @@ -41,25 +41,25 @@ class ConvertReduceBase : public ov::pass::MatcherPass { class ov::pass::ConvertReduceMeanToPooling : public ConvertReduceBase { public: - OPENVINO_RTTI("ConvertReduceMeanToPooling", "0"); + OPENVINO_RTTI("ConvertReduceMeanToPooling", "0", ConvertReduceBase); ConvertReduceMeanToPooling(); }; class ov::pass::ConvertReduceMaxToPooling : public ConvertReduceBase { public: - OPENVINO_RTTI("ConvertReduceMaxToPooling", "0"); + OPENVINO_RTTI("ConvertReduceMaxToPooling", "0", ConvertReduceBase); ConvertReduceMaxToPooling(); }; class ov::pass::ConvertReduceSumToPooling : public ConvertReduceBase { public: - OPENVINO_RTTI("ConvertReduceSumToPooling", "0"); + OPENVINO_RTTI("ConvertReduceSumToPooling", "0", ConvertReduceBase); ConvertReduceSumToPooling(); }; class ov::pass::ConvertReduceToPooling : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("ConvertReduceToPooling", "0"); + OPENVINO_RTTI("ConvertReduceToPooling", "0", ov::pass::GraphRewrite); ConvertReduceToPooling() { add_matcher(); add_matcher(); diff --git a/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_reshape.hpp b/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_reshape.hpp index 15e303f0c26493..b8750cd6732ebc 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_reshape.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_reshape.hpp @@ -40,49 +40,49 @@ class CvtReduceBase : public ov::pass::MatcherPass { class ov::pass::ConvertReduceMeanToReshape : public CvtReduceBase { public: - OPENVINO_RTTI("ConvertReduceMeanToReshape", "0"); + OPENVINO_RTTI("ConvertReduceMeanToReshape", "0", CvtReduceBase); ConvertReduceMeanToReshape(); }; class ov::pass::ConvertReduceSumToReshape : public CvtReduceBase { public: - OPENVINO_RTTI("ConvertReduceSumToReshape", "0"); + OPENVINO_RTTI("ConvertReduceSumToReshape", "0", CvtReduceBase); ConvertReduceSumToReshape(); }; class ov::pass::ConvertReduceProdToReshape : public CvtReduceBase { public: - OPENVINO_RTTI("ConvertReduceProdToReshape", "0"); + OPENVINO_RTTI("ConvertReduceProdToReshape", "0", CvtReduceBase); ConvertReduceProdToReshape(); }; class ov::pass::ConvertReduceMaxToReshape : public CvtReduceBase { public: - OPENVINO_RTTI("ConvertReduceMaxToReshape", "0"); + OPENVINO_RTTI("ConvertReduceMaxToReshape", "0", CvtReduceBase); ConvertReduceMaxToReshape(); }; class ov::pass::ConvertReduceMinToReshape : public CvtReduceBase { public: - OPENVINO_RTTI("ConvertReduceMinToReshape", "0"); + OPENVINO_RTTI("ConvertReduceMinToReshape", "0", CvtReduceBase); ConvertReduceMinToReshape(); }; class ov::pass::ConvertReduceLogicalAndToReshape : public CvtReduceBase { public: - OPENVINO_RTTI("ConvertReduceLogicalAndToReshape", "0"); + OPENVINO_RTTI("ConvertReduceLogicalAndToReshape", "0", CvtReduceBase); ConvertReduceLogicalAndToReshape(); }; class ov::pass::ConvertReduceLogicalOrToReshape : public CvtReduceBase { public: - OPENVINO_RTTI("ConvertReduceLogicalOrToReshape", "0"); + OPENVINO_RTTI("ConvertReduceLogicalOrToReshape", "0", CvtReduceBase); ConvertReduceLogicalOrToReshape(); }; class ov::pass::ConvertReduceToReshape : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("ConvertReduceToReshape", "0"); + OPENVINO_RTTI("ConvertReduceToReshape", "0", ov::pass::GraphRewrite); // Handling reduce if it can be converted to reshape (check input/output tensor) ConvertReduceToReshape() { // Redundant reduce based on its mode diff --git a/src/common/transformations/include/transformations/op_conversions/convert_roi_align_v3_to_v9.hpp b/src/common/transformations/include/transformations/op_conversions/convert_roi_align_v3_to_v9.hpp index 71f6becff0ba26..77c99e37b66533 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_roi_align_v3_to_v9.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_roi_align_v3_to_v9.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API ConvertROIAlign3To9; */ class ov::pass::ConvertROIAlign3To9 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertROIAlign3To9", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertROIAlign3To9"); ConvertROIAlign3To9(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_roi_align_v9_to_v3.hpp b/src/common/transformations/include/transformations/op_conversions/convert_roi_align_v9_to_v3.hpp index d06dc424ff436e..11b9567e78eb3e 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_roi_align_v9_to_v3.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_roi_align_v9_to_v3.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API ConvertROIAlign9To3; */ class ov::pass::ConvertROIAlign9To3 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertROIAlign9To3", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertROIAlign9To3"); ConvertROIAlign9To3(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_scatter_elements_to_scatter.hpp b/src/common/transformations/include/transformations/op_conversions/convert_scatter_elements_to_scatter.hpp index d0a738c14fab9c..f8a2eb828e97b9 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_scatter_elements_to_scatter.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_scatter_elements_to_scatter.hpp @@ -24,6 +24,6 @@ class TRANSFORMATIONS_API ConvertScatterElementsToScatter; */ class ov::pass::ConvertScatterElementsToScatter : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertScatterElementsToScatter", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertScatterElementsToScatter"); ConvertScatterElementsToScatter(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_scatter_elements_update12_downgrade.hpp b/src/common/transformations/include/transformations/op_conversions/convert_scatter_elements_update12_downgrade.hpp index 4af4e18c706e93..7e6d4613f109a8 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_scatter_elements_update12_downgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_scatter_elements_update12_downgrade.hpp @@ -15,7 +15,7 @@ namespace pass { */ class TRANSFORMATIONS_API ConvertScatterElementsUpdate12ToScatterElementsUpdate3 : public MatcherPass { public: - OPENVINO_RTTI("ConvertScatterElementsUpdate12ToScatterElementsUpdate3", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertScatterElementsUpdate12ToScatterElementsUpdate3"); ConvertScatterElementsUpdate12ToScatterElementsUpdate3(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_scatter_nd_update15_downgrade.hpp b/src/common/transformations/include/transformations/op_conversions/convert_scatter_nd_update15_downgrade.hpp index dfaab66e22501c..4af9172e6351cb 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_scatter_nd_update15_downgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_scatter_nd_update15_downgrade.hpp @@ -16,7 +16,7 @@ namespace pass { */ class TRANSFORMATIONS_API ConvertScatterNDUpdate15ToScatterNDUpdate3 : public MatcherPass { public: - OPENVINO_RTTI("ConvertScatterNDUpdate15ToScatterNDUpdate3", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertScatterNDUpdate15ToScatterNDUpdate3"); ConvertScatterNDUpdate15ToScatterNDUpdate3(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_sequences_to_tensor_iterator.hpp b/src/common/transformations/include/transformations/op_conversions/convert_sequences_to_tensor_iterator.hpp index 44502b42174de6..18163ae04e190b 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_sequences_to_tensor_iterator.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_sequences_to_tensor_iterator.hpp @@ -29,7 +29,7 @@ class TRANSFORMATIONS_API ConvertSequenceToTensorIterator; class ov::pass::ConvertRNNSequenceToTensorIterator : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertRNNSequenceToTensorIterator", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertRNNSequenceToTensorIterator"); ConvertRNNSequenceToTensorIterator(); }; @@ -41,7 +41,7 @@ class ov::pass::ConvertRNNSequenceToTensorIterator : public ov::pass::MatcherPas class ov::pass::ConvertGRUSequenceToTensorIterator : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertGRUSequenceToTensorIterator", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertGRUSequenceToTensorIterator"); ConvertGRUSequenceToTensorIterator(); }; @@ -53,12 +53,12 @@ class ov::pass::ConvertGRUSequenceToTensorIterator : public ov::pass::MatcherPas class ov::pass::ConvertLSTMSequenceToTensorIterator : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertLSTMSequenceToTensorIterator", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertLSTMSequenceToTensorIterator"); ConvertLSTMSequenceToTensorIterator(); }; class ov::pass::ConvertSequenceToTensorIterator : public GraphRewrite { public: - OPENVINO_RTTI("ConvertSequenceToTensorIterator", "0"); + OPENVINO_RTTI("ConvertSequenceToTensorIterator", "0", GraphRewrite); ConvertSequenceToTensorIterator(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_shapeof3.hpp b/src/common/transformations/include/transformations/op_conversions/convert_shapeof3.hpp index 0aceb9e99614fb..831ba981cb16d6 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_shapeof3.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_shapeof3.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API ConvertShapeOf3; class ov::pass::ConvertShapeOf3 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertShapeOf3", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertShapeOf3"); ConvertShapeOf3(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_shuffle_channels3.hpp b/src/common/transformations/include/transformations/op_conversions/convert_shuffle_channels3.hpp index 05b2d2607464b8..ac03068aa78298 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_shuffle_channels3.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_shuffle_channels3.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API ConvertShuffleChannels3; class ov::pass::ConvertShuffleChannels3 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertShuffleChannels3", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertShuffleChannels3"); ConvertShuffleChannels3(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_slice_to_strided_slice.hpp b/src/common/transformations/include/transformations/op_conversions/convert_slice_to_strided_slice.hpp index 8d396bca6ccd1e..b32c277b1a2b23 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_slice_to_strided_slice.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_slice_to_strided_slice.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API SliceToStridedSlice; */ class ov::pass::SliceToStridedSlice : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SliceToStridedSlice", "0"); + OPENVINO_MATCHER_PASS_RTTI("SliceToStridedSlice"); SliceToStridedSlice(bool use_shapes); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_slicescatter.hpp b/src/common/transformations/include/transformations/op_conversions/convert_slicescatter.hpp index 020b4e236fcac5..58dd6dbc39ac49 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_slicescatter.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_slicescatter.hpp @@ -17,6 +17,6 @@ class TRANSFORMATIONS_API ConvertSliceScatter; class ov::pass::ConvertSliceScatter : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertSliceScatter", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertSliceScatter"); ConvertSliceScatter(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_softmax_downgrade.hpp b/src/common/transformations/include/transformations/op_conversions/convert_softmax_downgrade.hpp index 701f2cb94e9857..b8cd2907f82cdd 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_softmax_downgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_softmax_downgrade.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API ConvertSoftMax8ToSoftMax1; */ class ov::pass::ConvertSoftMax8ToSoftMax1 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertSoftMax8ToSoftMax1", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertSoftMax8ToSoftMax1"); ConvertSoftMax8ToSoftMax1(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_softmax_upgrade.hpp b/src/common/transformations/include/transformations/op_conversions/convert_softmax_upgrade.hpp index 2164eac6052384..a7a0ef5b01aee1 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_softmax_upgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_softmax_upgrade.hpp @@ -22,6 +22,6 @@ class TRANSFORMATIONS_API ConvertSoftMax1ToSoftMax8; class ov::pass::ConvertSoftMax1ToSoftMax8 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertSoftMax1ToSoftMax8", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertSoftMax1ToSoftMax8"); ConvertSoftMax1ToSoftMax8(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_space_to_batch.hpp b/src/common/transformations/include/transformations/op_conversions/convert_space_to_batch.hpp index 97bda0273c522f..235a56b728876a 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_space_to_batch.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_space_to_batch.hpp @@ -33,7 +33,7 @@ class TRANSFORMATIONS_API ConvertSpaceToBatch; class ov::pass::ConvertSpaceToBatch : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertSpaceToBatch", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertSpaceToBatch"); explicit ConvertSpaceToBatch(bool convert_by_elements = true) : MatcherPass() { if (convert_by_elements) convert_space_to_batch_by_elements(); diff --git a/src/common/transformations/include/transformations/op_conversions/convert_space_to_depth.hpp b/src/common/transformations/include/transformations/op_conversions/convert_space_to_depth.hpp index da97add26411a8..6edf57f4c254fe 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_space_to_depth.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_space_to_depth.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API ConvertSpaceToDepth; class ov::pass::ConvertSpaceToDepth : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertSpaceToDepth", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertSpaceToDepth"); ConvertSpaceToDepth(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_squeeze15_downgrade.hpp b/src/common/transformations/include/transformations/op_conversions/convert_squeeze15_downgrade.hpp index c2ebfbc0f3138b..d35858ce10b3f4 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_squeeze15_downgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_squeeze15_downgrade.hpp @@ -15,7 +15,7 @@ namespace pass { */ class TRANSFORMATIONS_API ConvertSqueeze15ToSqueeze0 : public MatcherPass { public: - OPENVINO_RTTI("ConvertSqueeze15ToSqueeze0", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertSqueeze15ToSqueeze0"); ConvertSqueeze15ToSqueeze0(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_subtract.hpp b/src/common/transformations/include/transformations/op_conversions/convert_subtract.hpp index 5b2a5d0c36abdf..c6baf673efe95c 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_subtract.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_subtract.hpp @@ -21,12 +21,12 @@ class TRANSFORMATIONS_API ConvertSubtractWithConstant; class ov::pass::ConvertSubtract : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertSubtract", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertSubtract"); ConvertSubtract(); }; class ov::pass::ConvertSubtractWithConstant : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertSubtractWithConstant", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertSubtractWithConstant"); ConvertSubtractWithConstant(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_ti_to_sequences.hpp b/src/common/transformations/include/transformations/op_conversions/convert_ti_to_sequences.hpp index e729d735c652d1..a0acd0907dbae1 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_ti_to_sequences.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_ti_to_sequences.hpp @@ -36,7 +36,7 @@ class TRANSFORMATIONS_API FuseLSTMSequencesToBidirectionalLSTMSequence; class ov::pass::ConvertTensorIteratorToLSTMSequence : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertTensorIteratorToLSTMSequence", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertTensorIteratorToLSTMSequence"); ConvertTensorIteratorToLSTMSequence(); }; @@ -48,7 +48,7 @@ class ov::pass::ConvertTensorIteratorToLSTMSequence : public ov::pass::MatcherPa class ov::pass::ConvertTensorIteratorToRNNSequence : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertTensorIteratorToRNNSequence", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertTensorIteratorToRNNSequence"); ConvertTensorIteratorToRNNSequence(); }; @@ -60,25 +60,25 @@ class ov::pass::ConvertTensorIteratorToRNNSequence : public ov::pass::MatcherPas class ov::pass::ConvertTensorIteratorToGRUSequence : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertTensorIteratorToGRUSequence", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertTensorIteratorToGRUSequence"); ConvertTensorIteratorToGRUSequence(); }; class ov::pass::ConvertTensorIteratorToSequence : public GraphRewrite { public: - OPENVINO_RTTI("ConvertTensorIteratorToSequence", "0"); + OPENVINO_RTTI("ConvertTensorIteratorToSequence", "0", GraphRewrite); ConvertTensorIteratorToSequence(); }; class ov::pass::ConvertLoopWithSlicedInputConcatOutputToLSTMSequence : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertLoopWithSlicedInputConcatOutputToLSTMSequence", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertLoopWithSlicedInputConcatOutputToLSTMSequence"); ConvertLoopWithSlicedInputConcatOutputToLSTMSequence(); }; class ov::pass::ConvertLoopWithScatterUpdateToLSTMSequence : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertLoopWithScatterUpdateToLSTMSequence", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertLoopWithScatterUpdateToLSTMSequence"); ConvertLoopWithScatterUpdateToLSTMSequence(); }; @@ -88,7 +88,7 @@ class ov::pass::ConvertLoopWithScatterUpdateToLSTMSequence : public ov::pass::Ma */ class ov::pass::ConvertLoopToLSTMSequence : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("ConvertLoopToLSTMSequence", "0"); + OPENVINO_RTTI("ConvertLoopToLSTMSequence", "0", ov::pass::GraphRewrite); ConvertLoopToLSTMSequence() { add_matcher(); add_matcher(); @@ -101,7 +101,7 @@ class ov::pass::ConvertLoopToLSTMSequence : public ov::pass::GraphRewrite { */ class ov::pass::FuseReverseLSTMSequence : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("FuseReverseLSTMSequence", "0"); + OPENVINO_MATCHER_PASS_RTTI("FuseReverseLSTMSequence"); FuseReverseLSTMSequence(); }; @@ -111,6 +111,6 @@ class ov::pass::FuseReverseLSTMSequence : public ov::pass::MatcherPass { */ class ov::pass::FuseLSTMSequencesToBidirectionalLSTMSequence : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("FuseLSTMSequencesToBidirectionalLSTMSequence", "0"); + OPENVINO_MATCHER_PASS_RTTI("FuseLSTMSequencesToBidirectionalLSTMSequence"); FuseLSTMSequencesToBidirectionalLSTMSequence(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_topk11_downgrade.hpp b/src/common/transformations/include/transformations/op_conversions/convert_topk11_downgrade.hpp index e6e8340e45df94..fd5be9a10c10ef 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_topk11_downgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_topk11_downgrade.hpp @@ -15,7 +15,7 @@ namespace pass { */ class TRANSFORMATIONS_API ConvertTopK11ToTopK3 : public MatcherPass { public: - OPENVINO_RTTI("ConvertTopK11ToTopK3", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertTopK11ToTopK3"); ConvertTopK11ToTopK3(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_topk3.hpp b/src/common/transformations/include/transformations/op_conversions/convert_topk3.hpp index 0b61bf85bff28f..0f3f6ea160f825 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_topk3.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_topk3.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API ConvertTopK3; class ov::pass::ConvertTopK3 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertTopK3", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertTopK3"); ConvertTopK3(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/convert_xor_to_logical_xor.hpp b/src/common/transformations/include/transformations/op_conversions/convert_xor_to_logical_xor.hpp index ee7bf0f55615bd..0940f5f1a67b51 100644 --- a/src/common/transformations/include/transformations/op_conversions/convert_xor_to_logical_xor.hpp +++ b/src/common/transformations/include/transformations/op_conversions/convert_xor_to_logical_xor.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API ConvertXorToLogicalXor; */ class ov::pass::ConvertXorToLogicalXor : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertXorToLogicalXor", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertXorToLogicalXor"); ConvertXorToLogicalXor(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/detection_output_downgrade.hpp b/src/common/transformations/include/transformations/op_conversions/detection_output_downgrade.hpp index 8f4e6ad237a6b0..b730f78b2291e8 100644 --- a/src/common/transformations/include/transformations/op_conversions/detection_output_downgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/detection_output_downgrade.hpp @@ -22,6 +22,6 @@ class TRANSFORMATIONS_API ConvertDetectionOutput8ToDetectionOutput1; */ class ov::pass::ConvertDetectionOutput8ToDetectionOutput1 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertDetectionOutput8ToDetectionOutput1", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertDetectionOutput8ToDetectionOutput1"); ConvertDetectionOutput8ToDetectionOutput1(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/detection_output_upgrade.hpp b/src/common/transformations/include/transformations/op_conversions/detection_output_upgrade.hpp index 8693fb206ed2cd..de92f382af92b3 100644 --- a/src/common/transformations/include/transformations/op_conversions/detection_output_upgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/detection_output_upgrade.hpp @@ -22,6 +22,6 @@ class TRANSFORMATIONS_API ConvertDetectionOutput1ToDetectionOutput8; */ class ov::pass::ConvertDetectionOutput1ToDetectionOutput8 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertDetectionOutput1ToDetectionOutput8", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertDetectionOutput1ToDetectionOutput8"); ConvertDetectionOutput1ToDetectionOutput8(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/einsum_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/einsum_decomposition.hpp index 78accf3f0b4877..e67367a2e93bab 100644 --- a/src/common/transformations/include/transformations/op_conversions/einsum_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/einsum_decomposition.hpp @@ -24,6 +24,6 @@ class TRANSFORMATIONS_API EinsumDecomposition; */ class ov::pass::EinsumDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EinsumDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("EinsumDecomposition"); EinsumDecomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/eye_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/eye_decomposition.hpp index 15c53bc9cf6f30..29913d429b8462 100644 --- a/src/common/transformations/include/transformations/op_conversions/eye_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/eye_decomposition.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API EyeDecomposition; */ class ov::pass::EyeDecomposition : public MatcherPass { public: - OPENVINO_RTTI("EyeDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("EyeDecomposition"); EyeDecomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/fq_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/fq_decomposition.hpp index d938a9b70687e2..d099c268d2d7b0 100644 --- a/src/common/transformations/include/transformations/op_conversions/fq_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/fq_decomposition.hpp @@ -44,6 +44,6 @@ class TRANSFORMATIONS_API FakeQuantizeDecomposition; class ov::pass::FakeQuantizeDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("FakeQuantizeDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("FakeQuantizeDecomposition"); FakeQuantizeDecomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/gelu7_downgrade.hpp b/src/common/transformations/include/transformations/op_conversions/gelu7_downgrade.hpp index d08c3877de26a1..be26ea4c14625c 100644 --- a/src/common/transformations/include/transformations/op_conversions/gelu7_downgrade.hpp +++ b/src/common/transformations/include/transformations/op_conversions/gelu7_downgrade.hpp @@ -23,6 +23,6 @@ class TRANSFORMATIONS_API Gelu7Downgrade; */ class ov::pass::Gelu7Downgrade : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("Gelu7Downgrade", "0"); + OPENVINO_MATCHER_PASS_RTTI("Gelu7Downgrade"); Gelu7Downgrade(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/group_normalization_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/group_normalization_decomposition.hpp index 8df9c220a9de75..47c908eb8ac6f5 100644 --- a/src/common/transformations/include/transformations/op_conversions/group_normalization_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/group_normalization_decomposition.hpp @@ -18,6 +18,6 @@ class TRANSFORMATIONS_API GroupNormalizationDecomposition; // This transformation expresses GroupNormalization with a sub-graph of OpenVINO operations class ov::pass::GroupNormalizationDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GroupNormalizationDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("GroupNormalizationDecomposition"); GroupNormalizationDecomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/gru_cell_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/gru_cell_decomposition.hpp index ce4387293f97ad..1060d266b7fd0a 100644 --- a/src/common/transformations/include/transformations/op_conversions/gru_cell_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/gru_cell_decomposition.hpp @@ -36,6 +36,6 @@ class TRANSFORMATIONS_API GRUCellDecomposition; class ov::pass::GRUCellDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GRUCellDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("GRUCellDecomposition"); GRUCellDecomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/hard_sigmoid_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/hard_sigmoid_decomposition.hpp index b635a08350922b..b7636aeb5d6d68 100644 --- a/src/common/transformations/include/transformations/op_conversions/hard_sigmoid_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/hard_sigmoid_decomposition.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API HardSigmoidDecomposition; */ class ov::pass::HardSigmoidDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("HardSigmoidDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("HardSigmoidDecomposition"); HardSigmoidDecomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/hsigmoid_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/hsigmoid_decomposition.hpp index 5a455c37253afe..e597bc75f8600d 100644 --- a/src/common/transformations/include/transformations/op_conversions/hsigmoid_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/hsigmoid_decomposition.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API HSigmoidDecomposition; */ class ov::pass::HSigmoidDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("HSigmoidDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("HSigmoidDecomposition"); HSigmoidDecomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/hswish_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/hswish_decomposition.hpp index e6168109d3c89b..8d05edc3afa650 100644 --- a/src/common/transformations/include/transformations/op_conversions/hswish_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/hswish_decomposition.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API HSwishDecomposition; */ class ov::pass::HSwishDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("HSwishDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("HSwishDecomposition"); HSwishDecomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/log_softmax_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/log_softmax_decomposition.hpp index f972a0cdd8fa76..84e444c12fccec 100644 --- a/src/common/transformations/include/transformations/op_conversions/log_softmax_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/log_softmax_decomposition.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API LogSoftmaxDecomposition; */ class ov::pass::LogSoftmaxDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("LogSoftmaxDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("LogSoftmaxDecomposition"); LogSoftmaxDecomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/lstm_cell_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/lstm_cell_decomposition.hpp index 08b109533738cf..94077e21b472cb 100644 --- a/src/common/transformations/include/transformations/op_conversions/lstm_cell_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/lstm_cell_decomposition.hpp @@ -37,6 +37,6 @@ class TRANSFORMATIONS_API LSTMCellDecomposition; class ov::pass::LSTMCellDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("LSTMCellDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("LSTMCellDecomposition"); LSTMCellDecomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/mvn6_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/mvn6_decomposition.hpp index f8335f5f4546f2..abacd721fa23a7 100644 --- a/src/common/transformations/include/transformations/op_conversions/mvn6_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/mvn6_decomposition.hpp @@ -23,6 +23,6 @@ class TRANSFORMATIONS_API MVN6Decomposition; */ class ov::pass::MVN6Decomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MVN6Decomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("MVN6Decomposition"); MVN6Decomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/normalize_l2_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/normalize_l2_decomposition.hpp index ae058a3e8cba2f..18f071f8f6fb03 100644 --- a/src/common/transformations/include/transformations/op_conversions/normalize_l2_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/normalize_l2_decomposition.hpp @@ -24,6 +24,6 @@ class TRANSFORMATIONS_API NormalizeL2Decomposition; */ class ov::pass::NormalizeL2Decomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("NormalizeL2Decomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("NormalizeL2Decomposition"); NormalizeL2Decomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/reduce_l1_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/reduce_l1_decomposition.hpp index 506853e003e33a..1d8cc22089a93d 100644 --- a/src/common/transformations/include/transformations/op_conversions/reduce_l1_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/reduce_l1_decomposition.hpp @@ -24,6 +24,6 @@ class TRANSFORMATIONS_API ReduceL1Decomposition; */ class ov::pass::ReduceL1Decomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ReduceL1Decomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("ReduceL1Decomposition"); ReduceL1Decomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/reduce_l2_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/reduce_l2_decomposition.hpp index dab02ff58f2f5c..8bf9955d523593 100644 --- a/src/common/transformations/include/transformations/op_conversions/reduce_l2_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/reduce_l2_decomposition.hpp @@ -24,6 +24,6 @@ class TRANSFORMATIONS_API ReduceL2Decomposition; */ class ov::pass::ReduceL2Decomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ReduceL2Decomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("ReduceL2Decomposition"); ReduceL2Decomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/rnn_cell_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/rnn_cell_decomposition.hpp index ce651a47510577..475f2bf1cdf73e 100644 --- a/src/common/transformations/include/transformations/op_conversions/rnn_cell_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/rnn_cell_decomposition.hpp @@ -31,6 +31,6 @@ class TRANSFORMATIONS_API RNNCellDecomposition; class ov::pass::RNNCellDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("RNNCellDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("RNNCellDecomposition"); RNNCellDecomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/scaled_dot_product_attention_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/scaled_dot_product_attention_decomposition.hpp index e52c6ba46838b9..f86175c617c0fc 100644 --- a/src/common/transformations/include/transformations/op_conversions/scaled_dot_product_attention_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/scaled_dot_product_attention_decomposition.hpp @@ -18,7 +18,7 @@ class TRANSFORMATIONS_API ScaledDotProductAttentionDecomposition; class ov::pass::ScaledDotProductAttentionDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ScaledDotProductAttentionDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("ScaledDotProductAttentionDecomposition"); ScaledDotProductAttentionDecomposition(); std::shared_ptr decompose(std::shared_ptr node); }; diff --git a/src/common/transformations/include/transformations/op_conversions/simplify_ctc_greedy_decoder_seq_len.hpp b/src/common/transformations/include/transformations/op_conversions/simplify_ctc_greedy_decoder_seq_len.hpp index 70cd9bbe0162c5..e900f3c3d213f7 100644 --- a/src/common/transformations/include/transformations/op_conversions/simplify_ctc_greedy_decoder_seq_len.hpp +++ b/src/common/transformations/include/transformations/op_conversions/simplify_ctc_greedy_decoder_seq_len.hpp @@ -37,6 +37,6 @@ class TRANSFORMATIONS_API SimplifyCTCGreedyDecoderSeqLen; */ class ov::pass::SimplifyCTCGreedyDecoderSeqLen : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SimplifyCTCGreedyDecoderSeqLen", "0"); + OPENVINO_MATCHER_PASS_RTTI("SimplifyCTCGreedyDecoderSeqLen"); SimplifyCTCGreedyDecoderSeqLen(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/softmax_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/softmax_decomposition.hpp index a1ab4be69fdc62..0e13fd516b13e7 100644 --- a/src/common/transformations/include/transformations/op_conversions/softmax_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/softmax_decomposition.hpp @@ -69,6 +69,6 @@ class TRANSFORMATIONS_API SoftmaxDecomposition; class ov::pass::SoftmaxDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SoftmaxDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("SoftmaxDecomposition"); SoftmaxDecomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/softplus_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/softplus_decomposition.hpp index 3a7cca9ff5c8b1..ef52b8ab922d3b 100644 --- a/src/common/transformations/include/transformations/op_conversions/softplus_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/softplus_decomposition.hpp @@ -25,6 +25,6 @@ class TRANSFORMATIONS_API SoftPlusDecomposition; */ class ov::pass::SoftPlusDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SoftPlusDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("SoftPlusDecomposition"); SoftPlusDecomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/softsign_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/softsign_decomposition.hpp index bfd026f21eb111..300761470b73ce 100644 --- a/src/common/transformations/include/transformations/op_conversions/softsign_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/softsign_decomposition.hpp @@ -40,6 +40,6 @@ class TRANSFORMATIONS_API SoftSignDecomposition; class ov::pass::SoftSignDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SoftSignDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("SoftSignDecomposition"); SoftSignDecomposition(); }; diff --git a/src/common/transformations/include/transformations/op_conversions/unique_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/unique_decomposition.hpp index 02f889e7d3122a..6169a0a512e4f3 100644 --- a/src/common/transformations/include/transformations/op_conversions/unique_decomposition.hpp +++ b/src/common/transformations/include/transformations/op_conversions/unique_decomposition.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API UniqueDecomposition; // This transformation expresses Unique with a sub-graph of OpenVINO operations class ov::pass::UniqueDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("UniqueDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("UniqueDecomposition"); UniqueDecomposition(); }; diff --git a/src/common/transformations/include/transformations/opset_conversions/convert_opset2_to_opset1.hpp b/src/common/transformations/include/transformations/opset_conversions/convert_opset2_to_opset1.hpp index 8b523bc663912d..f7295f718b9ac1 100644 --- a/src/common/transformations/include/transformations/opset_conversions/convert_opset2_to_opset1.hpp +++ b/src/common/transformations/include/transformations/opset_conversions/convert_opset2_to_opset1.hpp @@ -19,6 +19,6 @@ class TRANSFORMATIONS_API ConvertOpSet2ToOpSet1; class ov::pass::ConvertOpSet2ToOpSet1 : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ConvertOpSet2ToOpSet1", "0"); + OPENVINO_RTTI("ConvertOpSet2ToOpSet1", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; diff --git a/src/common/transformations/include/transformations/opset_conversions/convert_opset3_to_opset2.hpp b/src/common/transformations/include/transformations/opset_conversions/convert_opset3_to_opset2.hpp index 8a44b0d24ad6e4..5ae7ef36b300b6 100644 --- a/src/common/transformations/include/transformations/opset_conversions/convert_opset3_to_opset2.hpp +++ b/src/common/transformations/include/transformations/opset_conversions/convert_opset3_to_opset2.hpp @@ -19,6 +19,6 @@ class TRANSFORMATIONS_API ConvertOpSet3ToOpSet2; class ov::pass::ConvertOpSet3ToOpSet2 : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ConvertOpSet3ToOpSet2", "0"); + OPENVINO_RTTI("ConvertOpSet3ToOpSet2", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; diff --git a/src/common/transformations/include/transformations/resolve_names_collisions.hpp b/src/common/transformations/include/transformations/resolve_names_collisions.hpp index f1d1f18a505441..5fde47825e52b2 100644 --- a/src/common/transformations/include/transformations/resolve_names_collisions.hpp +++ b/src/common/transformations/include/transformations/resolve_names_collisions.hpp @@ -24,7 +24,7 @@ namespace pass { */ class TRANSFORMATIONS_API ResolveNameCollisions : public ModelPass { public: - OPENVINO_RTTI("ResolveNameCollisions", "0"); + OPENVINO_RTTI("ResolveNameCollisions", "0", ov::pass::ModelPass); ResolveNameCollisions() = default; explicit ResolveNameCollisions(bool resolve_all_names) : m_resolve_all_names(resolve_all_names) {} bool run_on_model(const std::shared_ptr& model) override; diff --git a/src/common/transformations/include/transformations/rt_info/decompression.hpp b/src/common/transformations/include/transformations/rt_info/decompression.hpp index 84f474c247a35f..c86f824e45db69 100644 --- a/src/common/transformations/include/transformations/rt_info/decompression.hpp +++ b/src/common/transformations/include/transformations/rt_info/decompression.hpp @@ -30,7 +30,7 @@ TRANSFORMATIONS_API bool is_decompression(const std::shared_ptr& node); */ class TRANSFORMATIONS_API Decompression : public RuntimeAttribute { public: - OPENVINO_RTTI("decompression", "0"); + OPENVINO_RTTI("decompression", "0", RuntimeAttribute); Decompression() = default; diff --git a/src/common/transformations/include/transformations/rt_info/dequantization_node.hpp b/src/common/transformations/include/transformations/rt_info/dequantization_node.hpp index d9cf3589391b6d..cc1015c83dbc46 100644 --- a/src/common/transformations/include/transformations/rt_info/dequantization_node.hpp +++ b/src/common/transformations/include/transformations/rt_info/dequantization_node.hpp @@ -21,7 +21,7 @@ TRANSFORMATIONS_API bool is_dequantization_node(const std::shared_ptr& nod */ class TRANSFORMATIONS_API DequantizationNode : public RuntimeAttribute { public: - OPENVINO_RTTI("dequantization_node", "0"); + OPENVINO_RTTI("dequantization_node", "0", RuntimeAttribute); bool is_copyable() const override { return false; diff --git a/src/common/transformations/include/transformations/rt_info/disable_fp16_compression.hpp b/src/common/transformations/include/transformations/rt_info/disable_fp16_compression.hpp index 462b9c54a57138..8a76157d00ce8b 100644 --- a/src/common/transformations/include/transformations/rt_info/disable_fp16_compression.hpp +++ b/src/common/transformations/include/transformations/rt_info/disable_fp16_compression.hpp @@ -30,7 +30,7 @@ TRANSFORMATIONS_API void do_not_postpone_fp16_compression(RTMap& rt_info); */ class TRANSFORMATIONS_API DisableFP16Compression : public RuntimeAttribute { public: - OPENVINO_RTTI("precise", "0"); + OPENVINO_RTTI("precise", "0", RuntimeAttribute); DisableFP16Compression() = default; diff --git a/src/common/transformations/include/transformations/rt_info/is_shape_subgraph.hpp b/src/common/transformations/include/transformations/rt_info/is_shape_subgraph.hpp index 63ebe86d72d61e..1f526b45cc9ff0 100644 --- a/src/common/transformations/include/transformations/rt_info/is_shape_subgraph.hpp +++ b/src/common/transformations/include/transformations/rt_info/is_shape_subgraph.hpp @@ -23,7 +23,7 @@ TRANSFORMATIONS_API bool is_shape_subgraph(const std::shared_ptr& no */ class TRANSFORMATIONS_API ShapeSubgraph : public RuntimeAttribute { public: - OPENVINO_RTTI("shape_subgraph", "0"); + OPENVINO_RTTI("shape_subgraph", "0", RuntimeAttribute); ShapeSubgraph() = default; diff --git a/src/common/transformations/include/transformations/rt_info/keep_const_precision.hpp b/src/common/transformations/include/transformations/rt_info/keep_const_precision.hpp index 46c8bf00deb3f2..1d63e1b9ff0d90 100644 --- a/src/common/transformations/include/transformations/rt_info/keep_const_precision.hpp +++ b/src/common/transformations/include/transformations/rt_info/keep_const_precision.hpp @@ -23,7 +23,7 @@ TRANSFORMATIONS_API bool is_keep_const_precision(const std::shared_ptr& n */ class TRANSFORMATIONS_API NonconvertibleDivide : public RuntimeAttribute { public: - OPENVINO_RTTI("nonconvertable_divide", "0"); + OPENVINO_RTTI("nonconvertable_divide", "0", RuntimeAttribute); NonconvertibleDivide() = default; diff --git a/src/common/transformations/include/transformations/rt_info/old_api_map_element_type_attribute.hpp b/src/common/transformations/include/transformations/rt_info/old_api_map_element_type_attribute.hpp index 028e8ebf25560d..4fc801640a2456 100644 --- a/src/common/transformations/include/transformations/rt_info/old_api_map_element_type_attribute.hpp +++ b/src/common/transformations/include/transformations/rt_info/old_api_map_element_type_attribute.hpp @@ -29,7 +29,7 @@ namespace ov { */ class TRANSFORMATIONS_API OldApiMapElementType : public RuntimeAttribute { public: - OPENVINO_RTTI("old_api_map_element_type", "0"); + OPENVINO_RTTI("old_api_map_element_type", "0", RuntimeAttribute); /** * A default constructor diff --git a/src/common/transformations/include/transformations/rt_info/old_api_map_order_attribute.hpp b/src/common/transformations/include/transformations/rt_info/old_api_map_order_attribute.hpp index a790dc83fcd409..6f02c5b1534680 100644 --- a/src/common/transformations/include/transformations/rt_info/old_api_map_order_attribute.hpp +++ b/src/common/transformations/include/transformations/rt_info/old_api_map_order_attribute.hpp @@ -40,7 +40,7 @@ class OldApiMapOrder; */ class TRANSFORMATIONS_API OldApiMapOrder : public RuntimeAttribute { public: - OPENVINO_RTTI("old_api_map_order", "0"); + OPENVINO_RTTI("old_api_map_order", "0", RuntimeAttribute); /** * A default constructor diff --git a/src/common/transformations/include/transformations/rt_info/original_precision_attribute.hpp b/src/common/transformations/include/transformations/rt_info/original_precision_attribute.hpp index 428db0cf62a889..cb47d5406ea5a1 100644 --- a/src/common/transformations/include/transformations/rt_info/original_precision_attribute.hpp +++ b/src/common/transformations/include/transformations/rt_info/original_precision_attribute.hpp @@ -23,7 +23,7 @@ TRANSFORMATIONS_API element::Type_t get_original_precision(const std::shared_ptr */ class TRANSFORMATIONS_API OriginalPrecisionAttribute : public RuntimeAttribute { public: - OPENVINO_RTTI("original_precision", "0"); + OPENVINO_RTTI("original_precision", "0", RuntimeAttribute); }; } // namespace ov diff --git a/src/common/transformations/include/transformations/rt_info/preprocessing_attribute.hpp b/src/common/transformations/include/transformations/rt_info/preprocessing_attribute.hpp index 0511ec6bd7993a..8e615db018c10d 100644 --- a/src/common/transformations/include/transformations/rt_info/preprocessing_attribute.hpp +++ b/src/common/transformations/include/transformations/rt_info/preprocessing_attribute.hpp @@ -21,7 +21,7 @@ TRANSFORMATIONS_API void set_is_preprocessing_node(std::shared_ptr node); */ class TRANSFORMATIONS_API PreprocessingAttribute : public ov::RuntimeAttribute { public: - OPENVINO_RTTI("preprocessing", "0"); + OPENVINO_RTTI("preprocessing", "0", ov::RuntimeAttribute); PreprocessingAttribute() = default; bool visit_attributes(AttributeVisitor& visitor) override { return true; diff --git a/src/common/transformations/include/transformations/rt_info/primitives_priority_attribute.hpp b/src/common/transformations/include/transformations/rt_info/primitives_priority_attribute.hpp index dc18fb458cd4e5..ee5acde5b9f3ad 100644 --- a/src/common/transformations/include/transformations/rt_info/primitives_priority_attribute.hpp +++ b/src/common/transformations/include/transformations/rt_info/primitives_priority_attribute.hpp @@ -31,7 +31,7 @@ TRANSFORMATIONS_API std::string getPrimitivesPriority(const std::shared_ptr& node); class TRANSFORMATIONS_API StridesPropagation : public ov::RuntimeAttribute { public: - OPENVINO_RTTI("strides_propagation", "0"); + OPENVINO_RTTI("strides_propagation", "0", ov::RuntimeAttribute); StridesPropagation() = default; StridesPropagation(const ov::Strides& value) : value{value} {} diff --git a/src/common/transformations/include/transformations/rt_info/transpose_sinking_attr.hpp b/src/common/transformations/include/transformations/rt_info/transpose_sinking_attr.hpp index 5e0718b906c32f..5ff0051e6e1882 100644 --- a/src/common/transformations/include/transformations/rt_info/transpose_sinking_attr.hpp +++ b/src/common/transformations/include/transformations/rt_info/transpose_sinking_attr.hpp @@ -24,7 +24,7 @@ TRANSFORMATIONS_API bool is_sinking_node(ov::Output output); */ class TRANSFORMATIONS_API NoTransposeSinkingAttr : public RuntimeAttribute { public: - OPENVINO_RTTI("no_transpose_sinking", "0"); + OPENVINO_RTTI("no_transpose_sinking", "0", RuntimeAttribute); bool is_copyable() const override { return false; diff --git a/src/common/transformations/include/transformations/sdpa_to_paged_attention/position_ids_replacer.hpp b/src/common/transformations/include/transformations/sdpa_to_paged_attention/position_ids_replacer.hpp index 5ee79ec787a9bc..50c0ecd20e76af 100644 --- a/src/common/transformations/include/transformations/sdpa_to_paged_attention/position_ids_replacer.hpp +++ b/src/common/transformations/include/transformations/sdpa_to_paged_attention/position_ids_replacer.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API PositionIDsReplacer; class ov::pass::PositionIDsReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PositionIDsReplacer", "0"); + OPENVINO_MATCHER_PASS_RTTI("PositionIDsReplacer"); explicit PositionIDsReplacer(const Output& position_ids); -}; \ No newline at end of file +}; diff --git a/src/common/transformations/include/transformations/sdpa_to_paged_attention/prev_sequence_length_pattern.hpp b/src/common/transformations/include/transformations/sdpa_to_paged_attention/prev_sequence_length_pattern.hpp index fd4e22c69262ae..f5497207eb4e17 100644 --- a/src/common/transformations/include/transformations/sdpa_to_paged_attention/prev_sequence_length_pattern.hpp +++ b/src/common/transformations/include/transformations/sdpa_to_paged_attention/prev_sequence_length_pattern.hpp @@ -22,6 +22,6 @@ class TRANSFORMATIONS_API PrevSequenceLengthPattern; class ov::pass::PrevSequenceLengthPattern : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PrevSequenceLengthPattern", "0"); + OPENVINO_MATCHER_PASS_RTTI("PrevSequenceLengthPattern"); explicit PrevSequenceLengthPattern(std::shared_ptr prev_max_seq_len, std::shared_ptr batch_dim); -}; \ No newline at end of file +}; diff --git a/src/common/transformations/include/transformations/sdpa_to_paged_attention/state_management_pattern.hpp b/src/common/transformations/include/transformations/sdpa_to_paged_attention/state_management_pattern.hpp index feab06ccc0cd5d..79b4f444cfa791 100644 --- a/src/common/transformations/include/transformations/sdpa_to_paged_attention/state_management_pattern.hpp +++ b/src/common/transformations/include/transformations/sdpa_to_paged_attention/state_management_pattern.hpp @@ -17,7 +17,7 @@ class TRANSFORMATIONS_API StateManagementPattern; class ov::pass::StateManagementPattern : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("StateManagementPattern", "0"); + OPENVINO_MATCHER_PASS_RTTI("StateManagementPattern"); StateManagementPattern(ParameterVector& kv_parameters, ParameterVector& model_remaining_params, const std::shared_ptr& sliding_window, @@ -28,4 +28,4 @@ class ov::pass::StateManagementPattern : public ov::pass::MatcherPass { ResultVector& score_results, bool use_block_indices, bool use_score_outputs); -}; \ No newline at end of file +}; diff --git a/src/common/transformations/include/transformations/sdpa_to_paged_attention/total_sequence_length_pattern.hpp b/src/common/transformations/include/transformations/sdpa_to_paged_attention/total_sequence_length_pattern.hpp index c6b319a389ecaa..b5ecb96fa95198 100644 --- a/src/common/transformations/include/transformations/sdpa_to_paged_attention/total_sequence_length_pattern.hpp +++ b/src/common/transformations/include/transformations/sdpa_to_paged_attention/total_sequence_length_pattern.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API TotalSequenceLengthPattern; class ov::pass::TotalSequenceLengthPattern : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TotalSequenceLengthPattern", "0"); + OPENVINO_MATCHER_PASS_RTTI("TotalSequenceLengthPattern"); explicit TotalSequenceLengthPattern(const std::shared_ptr& max_context_len); }; diff --git a/src/common/transformations/include/transformations/smart_reshape/broadcast_const_range_replacement.hpp b/src/common/transformations/include/transformations/smart_reshape/broadcast_const_range_replacement.hpp index 04f7de9a336414..12cfe17a115592 100644 --- a/src/common/transformations/include/transformations/smart_reshape/broadcast_const_range_replacement.hpp +++ b/src/common/transformations/include/transformations/smart_reshape/broadcast_const_range_replacement.hpp @@ -23,6 +23,6 @@ class TRANSFORMATIONS_API BroadcastConstRangeReplacement; class ov::pass::BroadcastConstRangeReplacement : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("BroadcastConstRangeReplacement", "0"); + OPENVINO_MATCHER_PASS_RTTI("BroadcastConstRangeReplacement"); BroadcastConstRangeReplacement(); }; diff --git a/src/common/transformations/include/transformations/smart_reshape/lstm_states_broadcast.hpp b/src/common/transformations/include/transformations/smart_reshape/lstm_states_broadcast.hpp index 55f80ace7812e3..1f4ce4eb62bee4 100644 --- a/src/common/transformations/include/transformations/smart_reshape/lstm_states_broadcast.hpp +++ b/src/common/transformations/include/transformations/smart_reshape/lstm_states_broadcast.hpp @@ -26,6 +26,6 @@ class TRANSFORMATIONS_API LSTMStatesBroadcast; class ov::pass::LSTMStatesBroadcast : public ov::pass::ModelPass { public: - OPENVINO_RTTI("LSTMStatesBroadcast", "0"); + OPENVINO_RTTI("LSTMStatesBroadcast", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; diff --git a/src/common/transformations/include/transformations/smart_reshape/matmul_sr.hpp b/src/common/transformations/include/transformations/smart_reshape/matmul_sr.hpp index 4e21e767d1bce6..cec7ce6bcd074e 100644 --- a/src/common/transformations/include/transformations/smart_reshape/matmul_sr.hpp +++ b/src/common/transformations/include/transformations/smart_reshape/matmul_sr.hpp @@ -30,16 +30,16 @@ class TRANSFORMATIONS_API TransposeMatMul; class ov::pass::ReshapeAMatMul : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ReshapeAMatMul", "0"); + OPENVINO_MATCHER_PASS_RTTI("ReshapeAMatMul"); ReshapeAMatMul(); }; class ov::pass::ReshapeBMatMul : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ReshapeBMatMul", "0"); + OPENVINO_MATCHER_PASS_RTTI("ReshapeBMatMul"); ReshapeBMatMul(); }; class ov::pass::TransposeMatMul : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TransposeMatMul", "0"); + OPENVINO_MATCHER_PASS_RTTI("TransposeMatMul"); TransposeMatMul(); }; diff --git a/src/common/transformations/include/transformations/smart_reshape/proposal_scales_stridedslice.hpp b/src/common/transformations/include/transformations/smart_reshape/proposal_scales_stridedslice.hpp index d2eaf125e0dd5c..c8d756252509e1 100644 --- a/src/common/transformations/include/transformations/smart_reshape/proposal_scales_stridedslice.hpp +++ b/src/common/transformations/include/transformations/smart_reshape/proposal_scales_stridedslice.hpp @@ -36,12 +36,12 @@ class TRANSFORMATIONS_API Proposal4Scales; class ov::pass::Proposal1Scales : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("Proposal1Scales", "0"); + OPENVINO_MATCHER_PASS_RTTI("Proposal1Scales"); Proposal1Scales(); }; class ov::pass::Proposal4Scales : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("Proposal4Scales", "0"); + OPENVINO_MATCHER_PASS_RTTI("Proposal4Scales"); Proposal4Scales(); }; diff --git a/src/common/transformations/include/transformations/smart_reshape/reshape_sinking.hpp b/src/common/transformations/include/transformations/smart_reshape/reshape_sinking.hpp index aeaf46ccde1c2b..dd64980a0d155a 100644 --- a/src/common/transformations/include/transformations/smart_reshape/reshape_sinking.hpp +++ b/src/common/transformations/include/transformations/smart_reshape/reshape_sinking.hpp @@ -28,6 +28,6 @@ class TRANSFORMATIONS_API ReshapeSinkingMatMul; class ov::pass::ReshapeSinkingMatMul : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ReshapeSinkingMatMul", "0"); + OPENVINO_MATCHER_PASS_RTTI("ReshapeSinkingMatMul"); ReshapeSinkingMatMul(); }; diff --git a/src/common/transformations/include/transformations/smart_reshape/reshape_to_1D.hpp b/src/common/transformations/include/transformations/smart_reshape/reshape_to_1D.hpp index a973038bb30900..cab320f543f382 100644 --- a/src/common/transformations/include/transformations/smart_reshape/reshape_to_1D.hpp +++ b/src/common/transformations/include/transformations/smart_reshape/reshape_to_1D.hpp @@ -25,6 +25,6 @@ class TRANSFORMATIONS_API ReshapeTo1D; class ov::pass::ReshapeTo1D : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ReshapeTo1D", "0"); + OPENVINO_MATCHER_PASS_RTTI("ReshapeTo1D"); ReshapeTo1D(); }; diff --git a/src/common/transformations/include/transformations/smart_reshape/shape_of_const_folding.hpp b/src/common/transformations/include/transformations/smart_reshape/shape_of_const_folding.hpp index d2bc029cce4682..fdb620bf588e72 100644 --- a/src/common/transformations/include/transformations/smart_reshape/shape_of_const_folding.hpp +++ b/src/common/transformations/include/transformations/smart_reshape/shape_of_const_folding.hpp @@ -16,7 +16,7 @@ namespace pass { */ class TRANSFORMATIONS_API ShapeOfConstFolding : public MatcherPass { public: - OPENVINO_RTTI("ShapeOfConstFolding", "0"); + OPENVINO_MATCHER_PASS_RTTI("ShapeOfConstFolding"); ShapeOfConstFolding(); }; diff --git a/src/common/transformations/include/transformations/smart_reshape/smart_reshape.hpp b/src/common/transformations/include/transformations/smart_reshape/smart_reshape.hpp index 55bdf523762d91..484a6fb7cbd47a 100644 --- a/src/common/transformations/include/transformations/smart_reshape/smart_reshape.hpp +++ b/src/common/transformations/include/transformations/smart_reshape/smart_reshape.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API SmartReshape; class ov::pass::SmartReshape : public ov::pass::ModelPass { public: - OPENVINO_RTTI("SmartReshape", "0"); + OPENVINO_RTTI("SmartReshape", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; diff --git a/src/common/transformations/include/transformations/smart_reshape/strided_slice_squeeze.hpp b/src/common/transformations/include/transformations/smart_reshape/strided_slice_squeeze.hpp index f34b6d25a27e49..cafac7e77857fb 100644 --- a/src/common/transformations/include/transformations/smart_reshape/strided_slice_squeeze.hpp +++ b/src/common/transformations/include/transformations/smart_reshape/strided_slice_squeeze.hpp @@ -27,7 +27,7 @@ class TRANSFORMATIONS_API SqueezeStridedSlice; class ov::pass::StridedSliceSqueeze : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("StridedSliceSqueeze", "0"); + OPENVINO_MATCHER_PASS_RTTI("StridedSliceSqueeze"); StridedSliceSqueeze(); }; @@ -39,6 +39,6 @@ class ov::pass::StridedSliceSqueeze : public ov::pass::MatcherPass { class ov::pass::SqueezeStridedSlice : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SqueezeStridedSlice", "0"); + OPENVINO_MATCHER_PASS_RTTI("SqueezeStridedSlice"); SqueezeStridedSlice(); }; diff --git a/src/common/transformations/include/transformations/symbolic_transformations/chained_maximum.hpp b/src/common/transformations/include/transformations/symbolic_transformations/chained_maximum.hpp index c7cb03afd5ade4..20a43475233050 100644 --- a/src/common/transformations/include/transformations/symbolic_transformations/chained_maximum.hpp +++ b/src/common/transformations/include/transformations/symbolic_transformations/chained_maximum.hpp @@ -21,6 +21,6 @@ class TRANSFORMATIONS_API ChainedMaximumOptimization; */ class ov::pass::ChainedMaximumOptimization : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ChainedMaximumOptimization", "0"); + OPENVINO_MATCHER_PASS_RTTI("ChainedMaximumOptimization"); ChainedMaximumOptimization(); -}; \ No newline at end of file +}; diff --git a/src/common/transformations/include/transformations/symbolic_transformations/dereshape_matmul.hpp b/src/common/transformations/include/transformations/symbolic_transformations/dereshape_matmul.hpp index fa1c844faa7129..b1586741a05833 100644 --- a/src/common/transformations/include/transformations/symbolic_transformations/dereshape_matmul.hpp +++ b/src/common/transformations/include/transformations/symbolic_transformations/dereshape_matmul.hpp @@ -62,7 +62,7 @@ class TRANSFORMATIONS_API DeReshapeFullyConnected; */ class ov::pass::DeReshapeMatMul : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("DeReshapeMatMul", "0"); + OPENVINO_MATCHER_PASS_RTTI("DeReshapeMatMul"); DeReshapeMatMul(); }; @@ -87,6 +87,6 @@ class ov::pass::DeReshapeMatMul : public ov::pass::MatcherPass { */ class ov::pass::DeReshapeFullyConnected : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("DeReshapeFullyConnected", "0"); + OPENVINO_MATCHER_PASS_RTTI("DeReshapeFullyConnected"); DeReshapeFullyConnected(); }; diff --git a/src/common/transformations/include/transformations/symbolic_transformations/nop_broadcast.hpp b/src/common/transformations/include/transformations/symbolic_transformations/nop_broadcast.hpp index 5a12b5735ce428..524fef52846e5c 100644 --- a/src/common/transformations/include/transformations/symbolic_transformations/nop_broadcast.hpp +++ b/src/common/transformations/include/transformations/symbolic_transformations/nop_broadcast.hpp @@ -20,6 +20,6 @@ class TRANSFORMATIONS_API NopBroadcast; */ class ov::pass::NopBroadcast : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("NopBroadcast", "0"); + OPENVINO_MATCHER_PASS_RTTI("NopBroadcast"); NopBroadcast(); -}; \ No newline at end of file +}; diff --git a/src/common/transformations/include/transformations/symbolic_transformations/reshape_optimizations.hpp b/src/common/transformations/include/transformations/symbolic_transformations/reshape_optimizations.hpp index 5d84d83bad2de5..f23cfd580cbccf 100644 --- a/src/common/transformations/include/transformations/symbolic_transformations/reshape_optimizations.hpp +++ b/src/common/transformations/include/transformations/symbolic_transformations/reshape_optimizations.hpp @@ -52,6 +52,6 @@ class TRANSFORMATIONS_API ReshapeOptimizations; */ class ov::pass::ReshapeOptimizations : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ReshapeOptimizations", "0"); + OPENVINO_MATCHER_PASS_RTTI("ReshapeOptimizations"); ReshapeOptimizations(); }; diff --git a/src/common/transformations/include/transformations/symbolic_transformations/symbol_optimization.hpp b/src/common/transformations/include/transformations/symbolic_transformations/symbol_optimization.hpp index 179bc7d6cfcf52..21f36d312ec367 100644 --- a/src/common/transformations/include/transformations/symbolic_transformations/symbol_optimization.hpp +++ b/src/common/transformations/include/transformations/symbolic_transformations/symbol_optimization.hpp @@ -21,7 +21,7 @@ class TRANSFORMATIONS_API OptimizeSymbolsUsedAsValues; */ class ov::pass::ApplySymbolEquivalence : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ApplySymbolEquivalence", "0"); + OPENVINO_RTTI("ApplySymbolEquivalence", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; @@ -32,6 +32,6 @@ class ov::pass::ApplySymbolEquivalence : public ov::pass::ModelPass { */ class ov::pass::OptimizeSymbolsUsedAsValues : public ov::pass::ModelPass { public: - OPENVINO_RTTI("OptimizeSymbolsUsedAsValues", "0"); + OPENVINO_RTTI("OptimizeSymbolsUsedAsValues", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; diff --git a/src/common/transformations/include/transformations/symbolic_transformations/symbolic_optimizations.hpp b/src/common/transformations/include/transformations/symbolic_transformations/symbolic_optimizations.hpp index 17a5d8503cbcb9..952d602cbc3a57 100644 --- a/src/common/transformations/include/transformations/symbolic_transformations/symbolic_optimizations.hpp +++ b/src/common/transformations/include/transformations/symbolic_transformations/symbolic_optimizations.hpp @@ -24,7 +24,7 @@ class TRANSFORMATIONS_API LabelResolvingThroughSelect; */ class ov::pass::SymbolicOptimizations : public ov::pass::ModelPass { public: - OPENVINO_RTTI("SymbolicOptimizations", "0"); + OPENVINO_RTTI("SymbolicOptimizations", "0", ov::pass::ModelPass); explicit SymbolicOptimizations(bool full_run = true); bool run_on_model(const std::shared_ptr& m) override; std::shared_ptr get_manager() { @@ -42,7 +42,7 @@ class ov::pass::SymbolicOptimizations : public ov::pass::ModelPass { */ class ov::pass::SymbolicPropagation : public ov::pass::ModelPass { public: - OPENVINO_RTTI("SymbolicPropagation"); + OPENVINO_RTTI("SymbolicPropagation", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; @@ -58,6 +58,6 @@ class ov::pass::SymbolicPropagation : public ov::pass::ModelPass { */ class ov::pass::LabelResolvingThroughSelect : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("LabelResolvingThroughSelect", "0"); + OPENVINO_MATCHER_PASS_RTTI("LabelResolvingThroughSelect"); LabelResolvingThroughSelect(); -}; \ No newline at end of file +}; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_base.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_base.hpp index 013799e854df8f..d16bf401576b96 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_base.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_base.hpp @@ -27,7 +27,7 @@ class TRANSFORMATIONS_API TSForwardBase; */ class ov::pass::transpose_sinking::TSForwardBase : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::pass::TSForwardBase", "0"); + OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSForwardBase"); TSForwardBase() = default; template diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_binary.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_binary.hpp index 9534380d51253e..5eb90b6201b5cb 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_binary.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_binary.hpp @@ -26,7 +26,7 @@ class TRANSFORMATIONS_API TSBinaryBackward; */ class ov::pass::transpose_sinking::TSBinaryForward : public ov::pass::transpose_sinking::TSForwardBase { public: - OPENVINO_RTTI("ov::pass::TSBinaryForward", "0"); + OPENVINO_RTTI("ov::pass::TSBinaryForward", "0", ov::pass::transpose_sinking::TSForwardBase); TSBinaryForward(); }; @@ -37,6 +37,6 @@ class ov::pass::transpose_sinking::TSBinaryForward : public ov::pass::transpose_ */ class ov::pass::transpose_sinking::TSBinaryBackward : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::pass::TSBinaryBackward", "0"); + OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSBinaryBackward"); TSBinaryBackward(); }; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_concat.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_concat.hpp index cc0ccc2c194dbf..b453a2112575ed 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_concat.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_concat.hpp @@ -26,7 +26,7 @@ class TRANSFORMATIONS_API TSConcatBackward; */ class ov::pass::transpose_sinking::TSConcatForward : public ov::pass::transpose_sinking::TSForwardBase { public: - OPENVINO_RTTI("ov::pass::TSConcatForward", "0"); + OPENVINO_RTTI("ov::pass::TSConcatForward", "0", ov::pass::transpose_sinking::TSForwardBase); TSConcatForward(); }; @@ -37,6 +37,6 @@ class ov::pass::transpose_sinking::TSConcatForward : public ov::pass::transpose_ */ class ov::pass::transpose_sinking::TSConcatBackward : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::pass::TSConcatBackward", "0"); + OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSConcatBackward"); TSConcatBackward(); }; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_cumsum.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_cumsum.hpp index 185bea0105ec4d..f83a1dfcb9f25c 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_cumsum.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_cumsum.hpp @@ -25,7 +25,7 @@ class TRANSFORMATIONS_API TSCumSumBackward; */ class ov::pass::transpose_sinking::TSCumSumForward : public ov::pass::transpose_sinking::TSForwardBase { public: - OPENVINO_RTTI("ov::pass::TSBinaryForward", "0"); + OPENVINO_RTTI("ov::pass::TSBinaryForward", "0", ov::pass::transpose_sinking::TSForwardBase); TSCumSumForward(); }; @@ -35,6 +35,6 @@ class ov::pass::transpose_sinking::TSCumSumForward : public ov::pass::transpose_ */ class ov::pass::transpose_sinking::TSCumSumBackward : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::pass::TSBinaryBackward", "0"); + OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSBinaryBackward"); TSCumSumBackward(); }; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_data_movement.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_data_movement.hpp index 9775e57d61146b..b004615fe9707d 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_data_movement.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_data_movement.hpp @@ -27,7 +27,7 @@ class TRANSFORMATIONS_API TSDataMovementBackward; */ class ov::pass::transpose_sinking::TSDataMovementForward : public ov::pass::transpose_sinking::TSForwardBase { public: - OPENVINO_RTTI("ov::pass::TSDataMovementForward", "0"); + OPENVINO_RTTI("ov::pass::TSDataMovementForward", "0", ov::pass::transpose_sinking::TSForwardBase); TSDataMovementForward(); }; @@ -39,6 +39,6 @@ class ov::pass::transpose_sinking::TSDataMovementForward : public ov::pass::tran */ class ov::pass::transpose_sinking::TSDataMovementBackward : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::pass::TSDataMovementBackward", "0"); + OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSDataMovementBackward"); TSDataMovementBackward(); }; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_fuse.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_fuse.hpp index 974e7accc4d808..6f5a654e70e81c 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_fuse.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_fuse.hpp @@ -24,6 +24,6 @@ class TRANSFORMATIONS_API TSFuse; */ class ov::pass::transpose_sinking::TSFuse : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TSFuse", "0"); + OPENVINO_MATCHER_PASS_RTTI("TSFuse"); TSFuse(); -}; \ No newline at end of file +}; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_gather.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_gather.hpp index 5bc7cea340cb72..c0e1d9569b1160 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_gather.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_gather.hpp @@ -26,7 +26,7 @@ class TRANSFORMATIONS_API TSGatherBackward; */ class ov::pass::transpose_sinking::TSGatherForward : public ov::pass::transpose_sinking::TSForwardBase { public: - OPENVINO_RTTI("ov::pass::TSGatherForward", "0"); + OPENVINO_RTTI("ov::pass::TSGatherForward", "0", ov::pass::transpose_sinking::TSForwardBase); TSGatherForward(); }; @@ -37,6 +37,6 @@ class ov::pass::transpose_sinking::TSGatherForward : public ov::pass::transpose_ */ class ov::pass::transpose_sinking::TSGatherBackward : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::pass::TSGatherBackward", "0"); + OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSGatherBackward"); TSGatherBackward(); -}; \ No newline at end of file +}; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_general.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_general.hpp index c794608798a4a4..6ca77bef131ce2 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_general.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_general.hpp @@ -29,7 +29,7 @@ using TransposeSinkingGeneral = ov::pass::transpose_sinking::TSGeneral; */ class ov::pass::transpose_sinking::TSGeneralForward : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("TSGeneralForward", "0"); + OPENVINO_RTTI("TSGeneralForward", "0", ov::pass::GraphRewrite); TSGeneralForward(); }; @@ -40,7 +40,7 @@ class ov::pass::transpose_sinking::TSGeneralForward : public ov::pass::GraphRewr */ class ov::pass::transpose_sinking::TSGeneralBackward : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("TSGeneralBackward", "0"); + OPENVINO_RTTI("TSGeneralBackward", "0", ov::pass::GraphRewrite); TSGeneralBackward(); }; @@ -52,6 +52,6 @@ class ov::pass::transpose_sinking::TSGeneralBackward : public ov::pass::GraphRew */ class ov::pass::transpose_sinking::TSGeneral : public ov::pass::ModelPass { public: - OPENVINO_RTTI("TSGeneral", "0"); + OPENVINO_RTTI("TSGeneral", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_interpolate.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_interpolate.hpp index dfdd062e1f7ce3..98a036fc9760c7 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_interpolate.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_interpolate.hpp @@ -26,7 +26,7 @@ class TRANSFORMATIONS_API TSInterpolateBackward; */ class ov::pass::transpose_sinking::TSInterpolateForward : public ov::pass::transpose_sinking::TSForwardBase { public: - OPENVINO_RTTI("ov::pass::TSInterpolateForward", "0"); + OPENVINO_RTTI("ov::pass::TSInterpolateForward", "0", ov::pass::transpose_sinking::TSForwardBase); TSInterpolateForward(); }; @@ -37,6 +37,6 @@ class ov::pass::transpose_sinking::TSInterpolateForward : public ov::pass::trans */ class ov::pass::transpose_sinking::TSInterpolateBackward : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::pass::TSInterpolateBackward", "0"); + OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSInterpolateBackward"); TSInterpolateBackward(); }; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_reduction.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_reduction.hpp index a983519a3012d6..80a33cb62bd3c9 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_reduction.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_reduction.hpp @@ -26,7 +26,7 @@ class TRANSFORMATIONS_API TSReductionBackward; */ class ov::pass::transpose_sinking::TSReductionForward : public ov::pass::transpose_sinking::TSForwardBase { public: - OPENVINO_RTTI("ov::pass::TSReductionForward", "0"); + OPENVINO_RTTI("ov::pass::TSReductionForward", "0", ov::pass::transpose_sinking::TSForwardBase); TSReductionForward(); }; @@ -37,6 +37,6 @@ class ov::pass::transpose_sinking::TSReductionForward : public ov::pass::transpo */ class ov::pass::transpose_sinking::TSReductionBackward : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::pass::TSReductionBackward", "0"); + OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSReductionBackward"); TSReductionBackward(); -}; \ No newline at end of file +}; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_reset_no_sinking_attribute.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_reset_no_sinking_attribute.hpp index 240c6e8342c069..3aa2a770390e35 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_reset_no_sinking_attribute.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_reset_no_sinking_attribute.hpp @@ -24,6 +24,6 @@ class TRANSFORMATIONS_API TSResetNoSinkingAttribute; */ class ov::pass::transpose_sinking::TSResetNoSinkingAttribute : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::pass::TSResetNoSinkingAttribute", "0"); + OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSResetNoSinkingAttribute"); TSResetNoSinkingAttribute(); }; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_shape_of.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_shape_of.hpp index e1f5a046203f53..adc730e1d4cd49 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_shape_of.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_shape_of.hpp @@ -46,6 +46,6 @@ class TRANSFORMATIONS_API TSShapeOfForward; */ class ov::pass::transpose_sinking::TSShapeOfForward : public ov::pass::transpose_sinking::TSForwardBase { public: - OPENVINO_RTTI("TSShapeOfForward", "0"); + OPENVINO_RTTI("TSShapeOfForward", "0", ov::pass::transpose_sinking::TSForwardBase); TSShapeOfForward(); }; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_slice.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_slice.hpp index 5e10a7f0e8a930..11d416ea23b4a8 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_slice.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_slice.hpp @@ -21,12 +21,12 @@ class TRANSFORMATIONS_API TSSliceBackward; class ov::pass::transpose_sinking::TSSliceForward : public ov::pass::transpose_sinking::TSForwardBase { public: - OPENVINO_RTTI("ov::pass::TSSliceForward", "0"); + OPENVINO_RTTI("ov::pass::TSSliceForward", "0", ov::pass::transpose_sinking::TSForwardBase); TSSliceForward(); }; class ov::pass::transpose_sinking::TSSliceBackward : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::pass::TSSliceBackward", "0"); + OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSSliceBackward"); TSSliceBackward(); }; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_split.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_split.hpp index cb24aa5273906f..54d5bf5ec40aad 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_split.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_split.hpp @@ -27,7 +27,7 @@ class TRANSFORMATIONS_API TSSplitForward; */ class ov::pass::transpose_sinking::TSSplitForward : public ov::pass::transpose_sinking::TSForwardBase { public: - OPENVINO_RTTI("ov::pass::TSSplitForward", "0"); + OPENVINO_RTTI("ov::pass::TSSplitForward", "0", ov::pass::transpose_sinking::TSForwardBase); TSSplitForward(); }; @@ -38,6 +38,6 @@ class ov::pass::transpose_sinking::TSSplitForward : public ov::pass::transpose_s */ class ov::pass::transpose_sinking::TSSplitBackward : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::pass::TSSplitBackward", "0"); + OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSSplitBackward"); TSSplitBackward(); }; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_squeeze.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_squeeze.hpp index 752e040ab52cab..2d5a60a196d5aa 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_squeeze.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_squeeze.hpp @@ -26,7 +26,7 @@ class TRANSFORMATIONS_API TSSqueezeBackward; */ class ov::pass::transpose_sinking::TSSqueezeForward : public ov::pass::transpose_sinking::TSForwardBase { public: - OPENVINO_RTTI("ov::pass::TSSqueezeForward", "0"); + OPENVINO_RTTI("ov::pass::TSSqueezeForward", "0", ov::pass::transpose_sinking::TSForwardBase); TSSqueezeForward(); }; @@ -37,6 +37,6 @@ class ov::pass::transpose_sinking::TSSqueezeForward : public ov::pass::transpose */ class ov::pass::transpose_sinking::TSSqueezeBackward : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::pass::TSSqueezeBackward", "0"); + OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSSqueezeBackward"); TSSqueezeBackward(); }; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_tile.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_tile.hpp index 9bb15894d70a81..ebb2b75eddee44 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_tile.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_tile.hpp @@ -26,7 +26,7 @@ class TRANSFORMATIONS_API TSTileBackward; */ class ov::pass::transpose_sinking::TSTileForward : public ov::pass::transpose_sinking::TSForwardBase { public: - OPENVINO_RTTI("ov::pass::TSBinaryForward", "0"); + OPENVINO_RTTI("ov::pass::TSBinaryForward", "0", ov::pass::transpose_sinking::TSForwardBase); TSTileForward(); }; @@ -36,6 +36,6 @@ class ov::pass::transpose_sinking::TSTileForward : public ov::pass::transpose_si */ class ov::pass::transpose_sinking::TSTileBackward : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::pass::TSBinaryBackward", "0"); + OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSBinaryBackward"); TSTileBackward(); }; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_unary.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_unary.hpp index c8148e912b30c0..85c220922b2b93 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_unary.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_unary.hpp @@ -26,7 +26,7 @@ class TRANSFORMATIONS_API TSUnaryBackward; */ class ov::pass::transpose_sinking::TSUnaryForward : public ov::pass::transpose_sinking::TSForwardBase { public: - OPENVINO_RTTI("TSUnaryForward", "0"); + OPENVINO_RTTI("TSUnaryForward", "0", ov::pass::transpose_sinking::TSForwardBase); TSUnaryForward(); }; @@ -37,6 +37,6 @@ class ov::pass::transpose_sinking::TSUnaryForward : public ov::pass::transpose_s */ class ov::pass::transpose_sinking::TSUnaryBackward : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TSUnaryBackwardMultiConsumers", "0"); + OPENVINO_MATCHER_PASS_RTTI("TSUnaryBackwardMultiConsumers"); TSUnaryBackward(); }; diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_unsqueeze.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_unsqueeze.hpp index 1ee195624cb801..8b4e9bb2f3b9e9 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_unsqueeze.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_unsqueeze.hpp @@ -26,7 +26,7 @@ class TRANSFORMATIONS_API TSUnsqueezeBackward; */ class ov::pass::transpose_sinking::TSUnsqueezeForward : public ov::pass::transpose_sinking::TSForwardBase { public: - OPENVINO_RTTI("ov::pass::TSUnsqueezeForward", "0"); + OPENVINO_RTTI("ov::pass::TSUnsqueezeForward", "0", ov::pass::transpose_sinking::TSForwardBase); TSUnsqueezeForward(); }; @@ -37,6 +37,6 @@ class ov::pass::transpose_sinking::TSUnsqueezeForward : public ov::pass::transpo */ class ov::pass::transpose_sinking::TSUnsqueezeBackward : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::pass::TSUnsqueezeBackward", "0"); + OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSUnsqueezeBackward"); TSUnsqueezeBackward(); }; diff --git a/src/common/transformations/include/transformations/utils/gen_pattern.hpp b/src/common/transformations/include/transformations/utils/gen_pattern.hpp index 21309e339c959c..f48931cef3e940 100644 --- a/src/common/transformations/include/transformations/utils/gen_pattern.hpp +++ b/src/common/transformations/include/transformations/utils/gen_pattern.hpp @@ -729,7 +729,7 @@ class AttrMatcher : public ov::AttributeVisitor { // from it. but we didn't use the predicate facility. class GenericPattern : public ov::pass::pattern::op::Pattern { public: - OPENVINO_RTTI("GenericPattern"); + OPENVINO_RTTI("GenericPattern", "0", ov::pass::pattern::op::Pattern); explicit GenericPattern(const DiscreteTypeInfo& type_info, const OutputVector& args, diff --git a/src/common/transformations/include/transformations/utils/print_model.hpp b/src/common/transformations/include/transformations/utils/print_model.hpp index 29340d60727c82..3303a63aac0376 100644 --- a/src/common/transformations/include/transformations/utils/print_model.hpp +++ b/src/common/transformations/include/transformations/utils/print_model.hpp @@ -390,7 +390,7 @@ void dump_cpp_style(std::ostream& os, const std::shared_ptr& model) { class OPENVINO_API PrintModel : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ov::pass::PrintModel"); + OPENVINO_RTTI("ov::pass::PrintModel", "0", ov::pass::ModelPass); PrintModel(std::string file_name) { static int dump_index = 0; diff --git a/src/common/transformations/src/transformations/common_optimizations/convert_nms_gather_path_to_unsigned.cpp b/src/common/transformations/src/transformations/common_optimizations/convert_nms_gather_path_to_unsigned.cpp index 7c22dbdfeac53d..5abe0b5b8c87e3 100644 --- a/src/common/transformations/src/transformations/common_optimizations/convert_nms_gather_path_to_unsigned.cpp +++ b/src/common/transformations/src/transformations/common_optimizations/convert_nms_gather_path_to_unsigned.cpp @@ -31,7 +31,7 @@ namespace ov { namespace pass { class InitNMSPath : public pass::MatcherPass { public: - OPENVINO_RTTI("InitNMSPath", "0"); + OPENVINO_MATCHER_PASS_RTTI("InitNMSPath"); InitNMSPath() { MATCHER_SCOPE(InitNMSPath); auto nms_pattern = pattern::wrap_type(); diff --git a/src/common/transformations/src/transformations/common_optimizations/eliminate_duplicate_ti_inputs.cpp b/src/common/transformations/src/transformations/common_optimizations/eliminate_duplicate_ti_inputs.cpp index c28779f4c1e498..ce010f04e15aee 100644 --- a/src/common/transformations/src/transformations/common_optimizations/eliminate_duplicate_ti_inputs.cpp +++ b/src/common/transformations/src/transformations/common_optimizations/eliminate_duplicate_ti_inputs.cpp @@ -31,14 +31,14 @@ ov::pass::EliminateDuplicateTIInputs::EliminateDuplicateTIInputs() { for (auto& key : input_descs) { auto is_equal = [&](const std::shared_ptr& input) -> bool { if (ti->input_value(input->m_input_index) == ti->input_value(key->m_input_index)) { - auto invariant_l = std::dynamic_pointer_cast(input); - auto invariant_r = std::dynamic_pointer_cast(key); + auto invariant_l = ov::as_type_ptr(input); + auto invariant_r = ov::as_type_ptr(key); if (invariant_l && invariant_r) { return true; } - auto slice_l = std::dynamic_pointer_cast(input); - auto slice_r = std::dynamic_pointer_cast(key); + auto slice_l = ov::as_type_ptr(input); + auto slice_r = ov::as_type_ptr(key); if (slice_l && slice_r) { return slice_l->m_axis == slice_r->m_axis && slice_l->m_start == slice_r->m_start && @@ -46,8 +46,8 @@ ov::pass::EliminateDuplicateTIInputs::EliminateDuplicateTIInputs() { slice_l->m_stride == slice_r->m_stride; } - auto merged_l = std::dynamic_pointer_cast(input); - auto merged_r = std::dynamic_pointer_cast(key); + auto merged_l = ov::as_type_ptr(input); + auto merged_r = ov::as_type_ptr(key); if (merged_l && merged_r) { return merged_l->m_body_value_index == merged_r->m_body_value_index; @@ -91,12 +91,12 @@ ov::pass::EliminateDuplicateTIInputs::EliminateDuplicateTIInputs() { for (const auto& remain : should_stay) { auto par = body->get_parameters()[remain->m_body_parameter_index]; auto in = ti->input_value(remain->m_input_index); - if (auto invariant = std::dynamic_pointer_cast(remain)) { + if (auto invariant = ov::as_type_ptr(remain)) { new_ti->set_invariant_input(par, in); - } else if (auto merged = std::dynamic_pointer_cast(remain)) { + } else if (auto merged = ov::as_type_ptr(remain)) { auto results = body->get_results(); new_ti->set_merged_input(par, in, results[merged->m_body_value_index]); - } else if (auto slice = std::dynamic_pointer_cast(remain)) { + } else if (auto slice = ov::as_type_ptr(remain)) { new_ti->set_sliced_input(par, in, slice->m_start, diff --git a/src/common/transformations/src/transformations/common_optimizations/nop_elimination.cpp b/src/common/transformations/src/transformations/common_optimizations/nop_elimination.cpp index 3883e94b74d33c..b5977aa93bc97b 100644 --- a/src/common/transformations/src/transformations/common_optimizations/nop_elimination.cpp +++ b/src/common/transformations/src/transformations/common_optimizations/nop_elimination.cpp @@ -350,7 +350,7 @@ static bool eliminate_unsqueeze(const shared_ptr& node) { #define SIMPLE_MATCHER_PASS_DEFINITION(NAME, FUNC, ...) \ class NAME : public ov::pass::MatcherPass { \ public: \ - OPENVINO_RTTI(STR(NAME), "0"); \ + OPENVINO_RTTI(STR(NAME), "0", ov::pass::MatcherPass); \ NAME() { \ MATCHER_SCOPE(NAME); \ auto match_node = ov::pass::pattern::wrap_type<__VA_ARGS__>(); \ diff --git a/src/common/transformations/src/transformations/common_optimizations/pull_through_reduce.cpp b/src/common/transformations/src/transformations/common_optimizations/pull_through_reduce.cpp index e25ae9989d97b5..a3e3d22112e765 100644 --- a/src/common/transformations/src/transformations/common_optimizations/pull_through_reduce.cpp +++ b/src/common/transformations/src/transformations/common_optimizations/pull_through_reduce.cpp @@ -120,8 +120,7 @@ ov::pass::PullUnsqueezeThroughReduce::PullUnsqueezeThroughReduce() { matcher_pass_callback callback = [=](pattern::Matcher& m) { auto& pattern_map = m.get_pattern_value_map(); const auto input_node = pattern_map.at(input); - const auto reduce_node = - std::dynamic_pointer_cast(pattern_map.at(reduce).get_node_shared_ptr()); + const auto reduce_node = ov::as_type_ptr(pattern_map.at(reduce).get_node_shared_ptr()); const auto unsqueeze_node = pattern_map.at(unsqueeze).get_node_shared_ptr(); auto unsqueeze_axes_input = ov::as_type_ptr(pattern_map.at(unsqueeze_axes).get_node_shared_ptr()); @@ -193,8 +192,7 @@ ov::pass::PullReshapeThroughReduce::PullReshapeThroughReduce() { matcher_pass_callback callback = [=](pattern::Matcher& m) { auto& pattern_map = m.get_pattern_value_map(); const auto input_node = pattern_map.at(input); - const auto reduce_node = - std::dynamic_pointer_cast(pattern_map.at(reduce).get_node_shared_ptr()); + const auto reduce_node = ov::as_type_ptr(pattern_map.at(reduce).get_node_shared_ptr()); if (!reduce_node) { return false; } diff --git a/src/common/transformations/src/transformations/common_optimizations/reduce_reshape_fusion.cpp b/src/common/transformations/src/transformations/common_optimizations/reduce_reshape_fusion.cpp index b2f8d98e715a30..c90afb3b9a7a23 100644 --- a/src/common/transformations/src/transformations/common_optimizations/reduce_reshape_fusion.cpp +++ b/src/common/transformations/src/transformations/common_optimizations/reduce_reshape_fusion.cpp @@ -31,8 +31,7 @@ ov::pass::ReduceReshapeFusion::ReduceReshapeFusion() { matcher_pass_callback callback = [=](pattern::Matcher& m) { auto& pattern_map = m.get_pattern_value_map(); auto reshape_node = pattern_map.at(reshape).get_node_shared_ptr(); - const auto reduce_node = - std::dynamic_pointer_cast(pattern_map.at(reduce).get_node_shared_ptr()); + const auto reduce_node = ov::as_type_ptr(pattern_map.at(reduce).get_node_shared_ptr()); if (!reduce_node) { return false; } diff --git a/src/common/transformations/src/transformations/common_optimizations/ric_fusion.cpp b/src/common/transformations/src/transformations/common_optimizations/ric_fusion.cpp index 53f26e00136ee9..f26f8c2eac49e2 100644 --- a/src/common/transformations/src/transformations/common_optimizations/ric_fusion.cpp +++ b/src/common/transformations/src/transformations/common_optimizations/ric_fusion.cpp @@ -804,7 +804,7 @@ class ConvertPassThrough : public ov::pass::MatcherPass { class Constant : public ov::pass::ModelPass { public: - OPENVINO_RTTI("Constant", "0"); + OPENVINO_RTTI("Constant", "0", ov::pass::ModelPass); Constant() = default; bool run_on_model(const std::shared_ptr& model) override { RUN_ON_FUNCTION_SCOPE(Constant); diff --git a/src/common/transformations/src/transformations/fp16_compression/mark_subgraphs_to_keep_in_mixed_precision.cpp b/src/common/transformations/src/transformations/fp16_compression/mark_subgraphs_to_keep_in_mixed_precision.cpp index 2235e87c792b0d..e1d3d0c0b6772f 100644 --- a/src/common/transformations/src/transformations/fp16_compression/mark_subgraphs_to_keep_in_mixed_precision.cpp +++ b/src/common/transformations/src/transformations/fp16_compression/mark_subgraphs_to_keep_in_mixed_precision.cpp @@ -116,7 +116,7 @@ const std::shared_ptr propagate_through_ops = */ class PropagateUpMarkToKeepInMixedPrecision : public pass::MatcherPass { public: - OPENVINO_RTTI("PropagateUpMarkToKeepInMixedPrecision", "0"); + OPENVINO_MATCHER_PASS_RTTI("PropagateUpMarkToKeepInMixedPrecision"); PropagateUpMarkToKeepInMixedPrecision() { MATCHER_SCOPE(PropagateUpMarkToKeepInMixedPrecision); @@ -159,7 +159,7 @@ class PropagateUpMarkToKeepInMixedPrecision : public pass::MatcherPass { */ class PropagateDownMarkToKeepInMixedPrecision : public pass::MatcherPass { public: - OPENVINO_RTTI("PropagateDownMarkToKeepInMixedPrecision", "0"); + OPENVINO_MATCHER_PASS_RTTI("PropagateDownMarkToKeepInMixedPrecision"); PropagateDownMarkToKeepInMixedPrecision() { MATCHER_SCOPE(PropagateDownMarkToKeepInMixedPrecision); @@ -197,7 +197,7 @@ class PropagateDownMarkToKeepInMixedPrecision : public pass::MatcherPass { class InitMarkReduceOpPath : public pass::MatcherPass { public: - OPENVINO_RTTI("InitMarkReduceOpPath", "0"); + OPENVINO_MATCHER_PASS_RTTI("InitMarkReduceOpPath"); InitMarkReduceOpPath() { MATCHER_SCOPE(InitMarkReduceOpPath); @@ -217,7 +217,7 @@ class InitMarkReduceOpPath : public pass::MatcherPass { class PropagateMarkUpReduceOpPath : public pass::MatcherPass { public: - OPENVINO_RTTI("PropagateMarkUpReduceOpPath", "0"); + OPENVINO_MATCHER_PASS_RTTI("PropagateMarkUpReduceOpPath"); PropagateMarkUpReduceOpPath() { MATCHER_SCOPE(PropagateMarkUpReduceOpPath); @@ -245,7 +245,7 @@ class PropagateMarkUpReduceOpPath : public pass::MatcherPass { class MarkExp : public pass::MatcherPass { public: // only exponent that go into ReduceOp should be marked as precision sensitive and kept in f32 - OPENVINO_RTTI("MarkExp", "0"); + OPENVINO_MATCHER_PASS_RTTI("MarkExp"); MarkExp() { MATCHER_SCOPE(MarkExp); auto exp_pattern = pattern::wrap_type(); @@ -271,7 +271,7 @@ class MarkExp : public pass::MatcherPass { */ class MarkExpInReduceOpPath : public BackwardGraphRewrite { public: - OPENVINO_RTTI("MarkExpInReduceOpPath", "0"); + OPENVINO_RTTI("MarkExpInReduceOpPath", "0", BackwardGraphRewrite); MarkExpInReduceOpPath() { // marking of ReduceOp path is needed to mark only Exponents that go into ReduceSum/ReduceMean ADD_MATCHER_FOR_THIS(InitMarkReduceOpPath); @@ -288,7 +288,7 @@ class MarkExpInReduceOpPath : public BackwardGraphRewrite { */ class MarkDivWithEps : public MatcherPass { public: - OPENVINO_RTTI("MarkDivWithEps", "0"); + OPENVINO_MATCHER_PASS_RTTI("MarkDivWithEps"); MarkDivWithEps() { MATCHER_SCOPE(MarkDivWithEps); @@ -367,7 +367,7 @@ class MarkDivWithEps : public MatcherPass { class PropagateDownDisableSensitivityForQuantized : public pass::MatcherPass { public: - OPENVINO_RTTI("DisableMarkingForQuantizedNodes", "0"); + OPENVINO_MATCHER_PASS_RTTI("DisableMarkingForQuantizedNodes"); PropagateDownDisableSensitivityForQuantized() { MATCHER_SCOPE(PropagateDownDisableSensitivityForQuantized); diff --git a/src/common/transformations/tests/utils/compare_functions_test.cpp b/src/common/transformations/tests/utils/compare_functions_test.cpp index 666e229205c9ae..b0e41fe7b8421c 100644 --- a/src/common/transformations/tests/utils/compare_functions_test.cpp +++ b/src/common/transformations/tests/utils/compare_functions_test.cpp @@ -602,7 +602,7 @@ class AttributeAdapter AttributeAdapter(TestDummyDataTypeTransformationTests_NO_OV_NAME_COLISION& value) : DirectValueAccessor(value) {} - OPENVINO_RTTI("TestDummyDataTypeTransformationTests_NO_OV_NAME_COLISION"); + OPENVINO_MATCHER_PASS_RTTI("TestDummyDataTypeTransformationTests_NO_OV_NAME_COLISION"); }; } // namespace ov diff --git a/src/core/include/openvino/op/squeeze.hpp b/src/core/include/openvino/op/squeeze.hpp index dde456aa2eef47..1e91008dc9868e 100644 --- a/src/core/include/openvino/op/squeeze.hpp +++ b/src/core/include/openvino/op/squeeze.hpp @@ -14,7 +14,7 @@ namespace v0 { /// \ingroup ov_ops_cpp_api class OPENVINO_API Squeeze : public util::SqueezeBase { public: - OPENVINO_OP("Squeeze", "opset1"); + OPENVINO_OP("Squeeze", "opset1", util::SqueezeBase); Squeeze(); /// \brief Constructs a squeeze v0 operation. @@ -43,7 +43,7 @@ namespace v15 { /// \ingroup ov_ops_cpp_api class OPENVINO_API Squeeze : public util::SqueezeBase { public: - OPENVINO_OP("Squeeze", "opset15"); + OPENVINO_OP("Squeeze", "opset15", util::SqueezeBase); Squeeze(); /// \brief Constructs a squeeze v15 operation. diff --git a/src/core/include/openvino/op/util/index_reduction.hpp b/src/core/include/openvino/op/util/index_reduction.hpp index 6f57afe6a7ed9e..8eee719da7a5c4 100644 --- a/src/core/include/openvino/op/util/index_reduction.hpp +++ b/src/core/include/openvino/op/util/index_reduction.hpp @@ -21,6 +21,8 @@ class OPENVINO_API IndexReduction : public Op { IndexReduction(const Output& arg, uint64_t axis, const element::Type& index_element_type); public: + OPENVINO_OP("IndexReduction", "util"); + uint64_t get_reduction_axis() const; void set_reduction_axis(uint64_t value); element::Type get_index_element_type() const; diff --git a/src/core/include/openvino/pass/backward_graph_rewrite.hpp b/src/core/include/openvino/pass/backward_graph_rewrite.hpp index 7e7f6f118efe8d..d667b740bdfc2f 100644 --- a/src/core/include/openvino/pass/backward_graph_rewrite.hpp +++ b/src/core/include/openvino/pass/backward_graph_rewrite.hpp @@ -11,7 +11,7 @@ namespace ov { namespace pass { class OPENVINO_API BackwardGraphRewrite : public GraphRewrite { public: - OPENVINO_RTTI("ov::pass::BackwardGraphRewrite"); + OPENVINO_RTTI("ov::pass::BackwardGraphRewrite", "0", GraphRewrite); BackwardGraphRewrite() = default; diff --git a/src/core/include/openvino/pass/constant_folding.hpp b/src/core/include/openvino/pass/constant_folding.hpp index 134f02c590974f..a58ac0da93bfd5 100644 --- a/src/core/include/openvino/pass/constant_folding.hpp +++ b/src/core/include/openvino/pass/constant_folding.hpp @@ -18,7 +18,7 @@ namespace pass { */ class OPENVINO_API ConstantFolding : public ModelPass { public: - OPENVINO_RTTI("ConstantFolding"); + OPENVINO_RTTI("ConstantFolding", "0", ModelPass); bool run_on_model(const std::shared_ptr& model) override; protected: @@ -65,7 +65,7 @@ OPENVINO_API bool constant_folding_is_disabled(const Node* const node); class OPENVINO_API DisableConstantFolding : public ov::RuntimeAttribute { public: - OPENVINO_RTTI("DisableConstantFolding"); + OPENVINO_RTTI("DisableConstantFolding", "0", ov::RuntimeAttribute); DisableConstantFolding() = default; bool is_copyable() const override { return false; diff --git a/src/core/include/openvino/pass/convert_fp32_to_fp16.hpp b/src/core/include/openvino/pass/convert_fp32_to_fp16.hpp index ae9bb25efb4a87..d4dc539c231517 100644 --- a/src/core/include/openvino/pass/convert_fp32_to_fp16.hpp +++ b/src/core/include/openvino/pass/convert_fp32_to_fp16.hpp @@ -14,7 +14,7 @@ namespace pass { */ class OPENVINO_API ConvertFP32ToFP16 : public ModelPass { public: - OPENVINO_RTTI("ConvertFP32ToFP16"); + OPENVINO_RTTI("ConvertFP32ToFP16", "0", ModelPass); bool run_on_model(const std::shared_ptr&) override; }; } // namespace pass diff --git a/src/core/include/openvino/pass/graph_rewrite.hpp b/src/core/include/openvino/pass/graph_rewrite.hpp index 3fd801235c31a2..26754f26f69068 100644 --- a/src/core/include/openvino/pass/graph_rewrite.hpp +++ b/src/core/include/openvino/pass/graph_rewrite.hpp @@ -34,7 +34,7 @@ namespace pass { /// \ingroup ov_pass_cpp_api class OPENVINO_API GraphRewrite : public ModelPass { public: - OPENVINO_RTTI("ov::pass::GraphRewrite"); + OPENVINO_RTTI("ov::pass::GraphRewrite", "0", ModelPass); GraphRewrite() = default; @@ -80,7 +80,7 @@ class OPENVINO_API GraphRewrite : public ModelPass { /// /// class ov::pass::LinFusions: public ov::pass::GraphRewrite { /// public: - /// OPENVINO_RTTI("LinFusion"); + /// OPENVINO_RTTI("LinFusion", "0", ov::pass::GraphRewrite); /// Fusions() { /// add_matcher(); /// add_matcher(); diff --git a/src/core/include/openvino/pass/low_latency.hpp b/src/core/include/openvino/pass/low_latency.hpp index b3a8d38f755d42..01a57f64fc969d 100644 --- a/src/core/include/openvino/pass/low_latency.hpp +++ b/src/core/include/openvino/pass/low_latency.hpp @@ -36,7 +36,7 @@ namespace pass { */ class OPENVINO_API LowLatency2 : public ModelPass { public: - OPENVINO_RTTI("LowLatency2"); + OPENVINO_RTTI("LowLatency2", "0", ModelPass); explicit LowLatency2(bool use_const_initializer = true) : m_use_const_initializer(use_const_initializer) {} diff --git a/src/core/include/openvino/pass/make_stateful.hpp b/src/core/include/openvino/pass/make_stateful.hpp index a4132589fe6a41..07836a9e753ccd 100644 --- a/src/core/include/openvino/pass/make_stateful.hpp +++ b/src/core/include/openvino/pass/make_stateful.hpp @@ -18,7 +18,7 @@ namespace pass { */ class OPENVINO_API MakeStateful : public ModelPass { public: - OPENVINO_RTTI("MakeStateful"); + OPENVINO_RTTI("MakeStateful", "0", ModelPass); using ParamResPairs = std::vector, std::shared_ptr>>; diff --git a/src/core/include/openvino/pass/matcher_pass.hpp b/src/core/include/openvino/pass/matcher_pass.hpp index b17237fdf08340..f63ba538df2dbe 100644 --- a/src/core/include/openvino/pass/matcher_pass.hpp +++ b/src/core/include/openvino/pass/matcher_pass.hpp @@ -6,10 +6,23 @@ #include #include -#include +#include +#include +#include "openvino/core/rtti.hpp" #include "openvino/pass/node_registry.hpp" +#define _OPENVINO_MATCHER_PASS_RTTI_WITH_TYPE(TYPE_NAME) _OPENVINO_MATCHER_PASS_RTTI_WITH_TYPE_VERSION(TYPE_NAME, "0") + +#define _OPENVINO_MATCHER_PASS_RTTI_WITH_TYPE_VERSION(TYPE_NAME, VERSION_NAME) \ + _OPENVINO_RTTI_WITH_TYPE_VERSION_PARENT(TYPE_NAME, VERSION_NAME, ::ov::pass::MatcherPass) + +#define OPENVINO_MATCHER_PASS_RTTI(...) \ + _OPENVINO_RTTI_EXPAND(_OPENVINO_RTTI_DEFINITION_SELECTOR(__VA_ARGS__, \ + _OPENVINO_RTTI_WITH_TYPE_VERSION_PARENT, \ + _OPENVINO_MATCHER_PASS_RTTI_WITH_TYPE_VERSION, \ + _OPENVINO_MATCHER_PASS_RTTI_WITH_TYPE)(__VA_ARGS__)) + namespace ov { using matcher_pass_callback = std::function; using graph_rewrite_callback = std::function; diff --git a/src/core/include/openvino/pass/pattern/op/any.hpp b/src/core/include/openvino/pass/pattern/op/any.hpp index 65c2df8ecd87bc..a4e0bae48922d7 100644 --- a/src/core/include/openvino/pass/pattern/op/any.hpp +++ b/src/core/include/openvino/pass/pattern/op/any.hpp @@ -15,7 +15,7 @@ namespace op { /// and the arguments match, the match succeeds. class OPENVINO_API Any : public Pattern { public: - OPENVINO_RTTI("patternAny"); + OPENVINO_RTTI("patternAny", "0", Pattern); /// \brief creates a Any node containing a sub-pattern described by \sa type and \sa /// shape. Any(const element::Type& type, const PartialShape& s, ValuePredicate pred, const OutputVector& wrapped_values) diff --git a/src/core/include/openvino/pass/pattern/op/any_of.hpp b/src/core/include/openvino/pass/pattern/op/any_of.hpp index 7e011dc777c730..9384d4c68a9755 100644 --- a/src/core/include/openvino/pass/pattern/op/any_of.hpp +++ b/src/core/include/openvino/pass/pattern/op/any_of.hpp @@ -20,7 +20,7 @@ namespace op { /// AnyOf may be given a type and shape for use in strict mode. class OPENVINO_API AnyOf : public Pattern { public: - OPENVINO_RTTI("patternAnyOf"); + OPENVINO_RTTI("patternAnyOf", "0", Pattern); /// \brief creates a AnyOf node containing a sub-pattern described by \sa type and /// \sa shape. AnyOf(const element::Type& type, const PartialShape& s, ValuePredicate pred, const OutputVector& wrapped_values) diff --git a/src/core/include/openvino/pass/pattern/op/any_output.hpp b/src/core/include/openvino/pass/pattern/op/any_output.hpp index 8d22825d43f14d..cec6184ce74891 100644 --- a/src/core/include/openvino/pass/pattern/op/any_output.hpp +++ b/src/core/include/openvino/pass/pattern/op/any_output.hpp @@ -14,7 +14,7 @@ namespace op { /// Matches any output of a node class OPENVINO_API AnyOutput : public Pattern { public: - OPENVINO_RTTI("patternAnyOutput"); + OPENVINO_RTTI("patternAnyOutput", "0", Pattern); /// \brief creates an AnyOutput node matching any output of a node /// \param node The node to match AnyOutput(const std::shared_ptr& pattern) : Pattern({pattern->output(0)}) {} diff --git a/src/core/include/openvino/pass/pattern/op/label.hpp b/src/core/include/openvino/pass/pattern/op/label.hpp index bbfa626abc0a76..b08cb82ed96fce 100644 --- a/src/core/include/openvino/pass/pattern/op/label.hpp +++ b/src/core/include/openvino/pass/pattern/op/label.hpp @@ -22,7 +22,7 @@ namespace op { /// more than one inputs are given, an Or pattern of the inputs serves as the input. class OPENVINO_API Label : public Pattern { public: - OPENVINO_RTTI("patternLabel"); + OPENVINO_RTTI("patternLabel", "0", Pattern); /// \brief creates a Label node containing a sub-pattern described by \sa type and /// \sa shape. /// diff --git a/src/core/include/openvino/pass/pattern/op/optional.hpp b/src/core/include/openvino/pass/pattern/op/optional.hpp index 36a64fe1c4d993..8686978f641c80 100644 --- a/src/core/include/openvino/pass/pattern/op/optional.hpp +++ b/src/core/include/openvino/pass/pattern/op/optional.hpp @@ -48,7 +48,7 @@ namespace op { // Issue: 139839 class OPENVINO_API Optional : public Pattern { public: - OPENVINO_RTTI("patternOptional"); + OPENVINO_RTTI("patternOptional", "0", Pattern); /// \brief creates an optional node matching one pattern. Add nodes to match list. /// \param type_infos Optional operation types to exclude them from the matching /// in case the following op types do not exist in a pattern to match. diff --git a/src/core/include/openvino/pass/pattern/op/or.hpp b/src/core/include/openvino/pass/pattern/op/or.hpp index b482e175e2b18f..36c1a4fe0baf6b 100644 --- a/src/core/include/openvino/pass/pattern/op/or.hpp +++ b/src/core/include/openvino/pass/pattern/op/or.hpp @@ -15,7 +15,7 @@ namespace op { /// succeeds on the first match. Otherwise the match fails. class OPENVINO_API Or : public Pattern { public: - OPENVINO_RTTI("patternOr"); + OPENVINO_RTTI("patternOr", "0", Pattern); /// \brief creates an Or node matching one of several sub-patterns in order. Does /// not add node to match list. /// \param patterns The patterns to try for matching diff --git a/src/core/include/openvino/pass/pattern/op/pattern.hpp b/src/core/include/openvino/pass/pattern/op/pattern.hpp index e9bb427d906b43..6cef92ab812d14 100644 --- a/src/core/include/openvino/pass/pattern/op/pattern.hpp +++ b/src/core/include/openvino/pass/pattern/op/pattern.hpp @@ -83,6 +83,7 @@ ValuePredicate as_value_predicate(NodePredicate pred); class OPENVINO_API Pattern : public Node { public: + OPENVINO_RTTI("Pattern"); /// \brief \p a base class for \sa Skip and \sa Label /// Pattern(const OutputVector& patterns, ValuePredicate pred); diff --git a/src/core/include/openvino/pass/pattern/op/true.hpp b/src/core/include/openvino/pass/pattern/op/true.hpp index de79aa563a22ec..9c80bba0efc52d 100644 --- a/src/core/include/openvino/pass/pattern/op/true.hpp +++ b/src/core/include/openvino/pass/pattern/op/true.hpp @@ -14,7 +14,7 @@ namespace op { /// \brief The match always succeeds. class OPENVINO_API True : public Pattern { public: - OPENVINO_RTTI("patternTrue"); + OPENVINO_RTTI("patternTrue", "0", Pattern); /// \brief Always matches, does not add node to match list. True() : Pattern(OutputVector{}) {} bool match_value(pattern::Matcher* matcher, diff --git a/src/core/include/openvino/pass/pattern/op/wrap_type.hpp b/src/core/include/openvino/pass/pattern/op/wrap_type.hpp index 75ee41ffa3753e..43e0e4a98b66bb 100644 --- a/src/core/include/openvino/pass/pattern/op/wrap_type.hpp +++ b/src/core/include/openvino/pass/pattern/op/wrap_type.hpp @@ -13,7 +13,7 @@ namespace pattern { namespace op { class OPENVINO_API WrapType : public Pattern { public: - OPENVINO_RTTI("patternAnyType"); + OPENVINO_RTTI("patternAnyType", "0", Pattern); explicit WrapType( NodeTypeInfo wrapped_type, diff --git a/src/core/include/openvino/pass/sdpa_to_paged_attention.hpp b/src/core/include/openvino/pass/sdpa_to_paged_attention.hpp index a0dd403818b462..50008adf709a52 100644 --- a/src/core/include/openvino/pass/sdpa_to_paged_attention.hpp +++ b/src/core/include/openvino/pass/sdpa_to_paged_attention.hpp @@ -17,7 +17,7 @@ namespace pass { */ class OPENVINO_API SDPAToPagedAttention : public ModelPass { public: - OPENVINO_RTTI("SDPAToPagedAttention"); + OPENVINO_RTTI("SDPAToPagedAttention", "0", ModelPass); SDPAToPagedAttention(bool use_block_indices_inputs = false, bool use_score_outputs = false); bool run_on_model(const std::shared_ptr& model) override; diff --git a/src/core/include/openvino/pass/serialize.hpp b/src/core/include/openvino/pass/serialize.hpp index d0eaadde346bf6..e88cbe314f354b 100644 --- a/src/core/include/openvino/pass/serialize.hpp +++ b/src/core/include/openvino/pass/serialize.hpp @@ -26,7 +26,7 @@ namespace pass { */ class OPENVINO_API Serialize : public ov::pass::ModelPass { public: - OPENVINO_RTTI("Serialize"); + OPENVINO_RTTI("Serialize", "0", ov::pass::ModelPass); enum class Version : uint8_t { UNSPECIFIED = 0, // Use the latest or function version @@ -63,7 +63,7 @@ class OPENVINO_API Serialize : public ov::pass::ModelPass { */ class OPENVINO_API StreamSerialize : public ov::pass::ModelPass { public: - OPENVINO_RTTI("StreamSerialize"); + OPENVINO_RTTI("StreamSerialize", "0", ov::pass::ModelPass); struct DataHeader { size_t custom_data_offset; diff --git a/src/core/include/openvino/pass/stateful_to_stateless.hpp b/src/core/include/openvino/pass/stateful_to_stateless.hpp index 90fd6b9e6e7901..558b1eb0f3382f 100644 --- a/src/core/include/openvino/pass/stateful_to_stateless.hpp +++ b/src/core/include/openvino/pass/stateful_to_stateless.hpp @@ -14,7 +14,7 @@ namespace pass { */ class OPENVINO_API StatefulToStateless : public ModelPass { public: - OPENVINO_RTTI("StatefulToStateless"); + OPENVINO_RTTI("StatefulToStateless", "0", ModelPass); bool run_on_model(const std::shared_ptr& model) override; }; diff --git a/src/core/include/openvino/pass/validate.hpp b/src/core/include/openvino/pass/validate.hpp index 23cfe9909f707b..54b78f23d9254e 100644 --- a/src/core/include/openvino/pass/validate.hpp +++ b/src/core/include/openvino/pass/validate.hpp @@ -24,7 +24,7 @@ namespace pass { /// \ingroup ov_pass_cpp_api class OPENVINO_API Validate : public ModelPass { public: - OPENVINO_RTTI("ov::pass::Validate"); + OPENVINO_RTTI("ov::pass::Validate", "0", ModelPass); Validate() : ModelPass() {} bool run_on_model(const std::shared_ptr& f) override; diff --git a/src/core/include/openvino/pass/visualize_tree.hpp b/src/core/include/openvino/pass/visualize_tree.hpp index 065cec96e27220..c84d83086204ce 100644 --- a/src/core/include/openvino/pass/visualize_tree.hpp +++ b/src/core/include/openvino/pass/visualize_tree.hpp @@ -28,7 +28,7 @@ namespace pass { */ class OPENVINO_API VisualizeTree : public ModelPass { public: - OPENVINO_RTTI("ov::pass::VisualizeTree"); + OPENVINO_RTTI("ov::pass::VisualizeTree", "0", ModelPass); using node_modifiers_t = std::function& attributes)>; VisualizeTree(const std::string& file_name, node_modifiers_t nm = nullptr, bool dot_only = false); diff --git a/src/core/reference/src/op/loop.cpp b/src/core/reference/src/op/loop.cpp index 17d9a57e538b93..6026cf12eda8b8 100644 --- a/src/core/reference/src/op/loop.cpp +++ b/src/core/reference/src/op/loop.cpp @@ -62,7 +62,7 @@ void loop(const std::shared_ptr& func, std::vector back_edges; for (const auto& desc : input_descs) { inputs_to_body[desc->m_body_parameter_index] = args[desc->m_input_index]; - if (const auto& merged_desc = std::dynamic_pointer_cast(desc)) { + if (const auto& merged_desc = ov::as_type_ptr(desc)) { back_edges.push_back({merged_desc->m_body_parameter_index, merged_desc->m_body_value_index}); cur_iter_back_edge_exist |= merged_desc->m_body_parameter_index == static_cast(cur_iter_idx); } @@ -87,7 +87,7 @@ void loop(const std::shared_ptr& func, // Find all ConcatOutputDescription std::vector> concat_outputs; for (const auto& desc : out_descs) { - if (const auto& concat_desc = std::dynamic_pointer_cast(desc)) { + if (const auto& concat_desc = ov::as_type_ptr(desc)) { concat_outputs.push_back(concat_desc); } } @@ -196,7 +196,7 @@ void loop(const std::shared_ptr& func, } for (const auto& desc : out_descs) { - if (const auto& body_desc = std::dynamic_pointer_cast(desc)) { + if (const auto& body_desc = ov::as_type_ptr(desc)) { const auto& res = body_outputs[body_desc->m_body_value_index]; res.copy_to(out[body_desc->m_output_index]); } diff --git a/src/core/reference/src/op/tensor_iterator.cpp b/src/core/reference/src/op/tensor_iterator.cpp index 96fb53e579d7f2..84851b7a65d444 100644 --- a/src/core/reference/src/op/tensor_iterator.cpp +++ b/src/core/reference/src/op/tensor_iterator.cpp @@ -32,7 +32,7 @@ void tensor_iterator(uint64_t num_iterations, std::vector back_edges; for (const auto& desc : input_descs) { inputs_to_body[desc->m_body_parameter_index] = args[desc->m_input_index]; - if (const auto& merged_desc = std::dynamic_pointer_cast(desc)) { + if (const auto& merged_desc = ov::as_type_ptr(desc)) { back_edges.push_back({merged_desc->m_body_parameter_index, merged_desc->m_body_value_index}); } } diff --git a/src/core/src/pass/constant_folding.cpp b/src/core/src/pass/constant_folding.cpp index cc1a7cea5b5add..a0a59f74daf6bd 100644 --- a/src/core/src/pass/constant_folding.cpp +++ b/src/core/src/pass/constant_folding.cpp @@ -75,7 +75,7 @@ static bool restore_original_input_precision(const std::shared_ptr& no class RequiresPrecisionConversion : public ov::RuntimeAttribute { public: - OPENVINO_RTTI("requires_precision_conversion", "0"); + OPENVINO_RTTI("requires_precision_conversion", "0", ov::RuntimeAttribute); bool is_copyable() const override { return false; diff --git a/src/core/src/pass/low_latency.cpp b/src/core/src/pass/low_latency.cpp index 4b9f606b3e4b28..ef761b452f18a8 100644 --- a/src/core/src/pass/low_latency.cpp +++ b/src/core/src/pass/low_latency.cpp @@ -251,15 +251,14 @@ bool ov::pass::LowLatency2::run_on_model(const std::shared_ptr& f) { const auto& params = func->get_parameters(); for (const auto& in : sub_graph_op->get_input_descriptions()) { // Process all back edges - if (const auto& merged_in = std::dynamic_pointer_cast(in)) { + if (const auto& merged_in = ov::as_type_ptr(in)) { // create new Variable const std::string& param_name = params.at(merged_in->m_body_parameter_index)->get_friendly_name(); const std::string& var_name = generate_variable_name(sub_graph_op->get_friendly_name(), param_name, variable_id); const auto& input = sub_graph_op->input(merged_in->m_input_index); - if (std::dynamic_pointer_cast(input.get_source_output().get_node_shared_ptr()) != - nullptr) { + if (ov::as_type_ptr(input.get_source_output().get_node_shared_ptr()) != nullptr) { OPENVINO_DEBUG(msg_low_latency_2_already_applied); return false; } @@ -267,7 +266,7 @@ bool ov::pass::LowLatency2::run_on_model(const std::shared_ptr& f) { const auto& param = sub_graph_op->get_function()->get_parameters().at(merged_in->m_body_parameter_index); for (const auto& in_to : param->output(0).get_target_inputs()) { - if (dynamic_cast(in_to.get_node()) != nullptr) { + if (ov::as_type(in_to.get_node()) != nullptr) { OPENVINO_DEBUG(msg_low_latency_already_applied); return false; } diff --git a/src/core/src/pass/manager.cpp b/src/core/src/pass/manager.cpp index a6f1fc287e221c..267454e991febb 100644 --- a/src/core/src/pass/manager.cpp +++ b/src/core/src/pass/manager.cpp @@ -384,7 +384,7 @@ bool ov::pass::Manager::run_pass(const std::shared_ptr& pass, OV_ITT_SCOPE(FIRST_INFERENCE, ov::itt::domains::ov_pass, ov::pass::perf_counters()[pass->get_type_info()]); - if (auto matcher_pass = std::dynamic_pointer_cast(pass)) { + if (auto matcher_pass = ov::as_type_ptr(pass)) { // GraphRewrite is a temporary container for MatcherPass to make execution on entire ov::Model return GraphRewrite(matcher_pass).run_on_model(model); } else if (auto model_pass = std::dynamic_pointer_cast(pass)) { diff --git a/src/core/src/pass/stateful_to_stateless.cpp b/src/core/src/pass/stateful_to_stateless.cpp index 95f289c71c201e..31e8e721d22857 100644 --- a/src/core/src/pass/stateful_to_stateless.cpp +++ b/src/core/src/pass/stateful_to_stateless.cpp @@ -97,8 +97,7 @@ bool ov::pass::StatefulToStateless::run_on_model(const std::shared_ptr& input : beam_idx->get_output_target_inputs(0)) { if (auto gather = std::dynamic_pointer_cast(input.get_node()->shared_from_this())) { - auto read_value = - std::dynamic_pointer_cast(gather->get_input_node_shared_ptr(0)); + auto read_value = ov::as_type_ptr(gather->get_input_node_shared_ptr(0)); OPENVINO_ASSERT(read_value, "Unexpected model topology in StatefulToStateless: no ReadValue is found at the first " "input of Gather by `beam_idx` parameter"); @@ -118,7 +117,7 @@ bool ov::pass::StatefulToStateless::run_on_model(const std::shared_ptr assign_index_by_var_id; const auto& sinks = model->get_sinks(); for (size_t i = 0; i < sinks.size(); ++i) { - if (auto assign = std::dynamic_pointer_cast(sinks[i])) { + if (auto assign = ov::as_type_ptr(sinks[i])) { const auto& var_id = assign->get_variable_id(); assigns_by_var_id[var_id] = std::move(assign); assign_index_by_var_id[var_id] = i; diff --git a/src/core/src/preprocess/preprocess_impls.cpp b/src/core/src/preprocess/preprocess_impls.cpp index e0cdee2e76a140..aa0abd4901a21b 100644 --- a/src/core/src/preprocess/preprocess_impls.cpp +++ b/src/core/src/preprocess/preprocess_impls.cpp @@ -211,7 +211,7 @@ bool InputInfo::InputInfoImpl::build(const std::shared_ptr& model, // Replace parameter for (auto consumer : consumers) { - if (dynamic_cast(consumer.get_node())) { + if (ov::as_type(consumer.get_node())) { // Some result points to old parameter (Param->Result case), need to trigger revalidation need_validate = true; } @@ -415,7 +415,7 @@ void OutputInfo::OutputInfoImpl::dump(std::ostream& str) const { std::shared_ptr result; auto node = m_output_node; const auto& start_out_node_names = node.get_tensor().get_names(); - result = std::dynamic_pointer_cast(node.get_node_shared_ptr()); + result = ov::as_type_ptr(node.get_node_shared_ptr()); auto model_layout = get_model_data()->is_layout_set() ? get_model_data()->get_layout() : result->get_layout(); PostprocessingContext context(model_layout); if (get_tensor_data()->is_layout_set()) { diff --git a/src/core/src/type.cpp b/src/core/src/type.cpp index dd1f308050f262..19975697236610 100644 --- a/src/core/src/type.cpp +++ b/src/core/src/type.cpp @@ -5,7 +5,6 @@ #include "openvino/core/type.hpp" #include "openvino/util/common_util.hpp" - namespace std { size_t std::hash::operator()(const ov::DiscreteTypeInfo& k) const { return k.hash(); diff --git a/src/core/tests/frontend/decoder_transformation_extension.cpp b/src/core/tests/frontend/decoder_transformation_extension.cpp index 714dd4b9fafb18..0e81fb9cd6b795 100644 --- a/src/core/tests/frontend/decoder_transformation_extension.cpp +++ b/src/core/tests/frontend/decoder_transformation_extension.cpp @@ -37,7 +37,7 @@ TEST(DecoderTransformation, FunctionPass) { namespace _decoder_transformation_test { class TestPass : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ov::pass::TestPass"); + OPENVINO_RTTI("ov::pass::TestPass", "0", ov::pass::ModelPass); TestPass() = default; TestPass(const TestPass& tp) = default; bool run_on_model(const std::shared_ptr&) override { diff --git a/src/core/tests/graph_rewrite.cpp b/src/core/tests/graph_rewrite.cpp index 3043e851aaf1d9..735ff58d0fdcf1 100644 --- a/src/core/tests/graph_rewrite.cpp +++ b/src/core/tests/graph_rewrite.cpp @@ -23,7 +23,7 @@ using namespace ov::pass; class TestPass : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TestPass"); + OPENVINO_MATCHER_PASS_RTTI("TestPass"); TestPass() : MatcherPass() { auto divide = std::make_shared(element::f32, Shape{}, @@ -44,7 +44,7 @@ class TestPass : public ov::pass::MatcherPass { class GatherNodesPass : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GatherNodesPass"); + OPENVINO_MATCHER_PASS_RTTI("GatherNodesPass"); GatherNodesPass(NodeVector& order) : MatcherPass() { ov::matcher_pass_callback callback = [&order](pattern::Matcher& m) { order.push_back(m.get_match_root()); @@ -58,7 +58,7 @@ class GatherNodesPass : public ov::pass::MatcherPass { class Anchor : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("Anchor"); + OPENVINO_RTTI("Anchor", "0", pass::GraphRewrite); Anchor() : GraphRewrite() {} }; @@ -388,7 +388,7 @@ TEST(PassConfigTest, Test1) { class CheckConsumers : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("CheckConsumers"); + OPENVINO_MATCHER_PASS_RTTI("CheckConsumers"); CheckConsumers() { ov::matcher_pass_callback callback = [](pattern::Matcher& m) -> bool { auto node = m.get_match_root(); diff --git a/src/core/tests/opset.cpp b/src/core/tests/opset.cpp index 81f6e80c28189f..7157eaea01c152 100644 --- a/src/core/tests/opset.cpp +++ b/src/core/tests/opset.cpp @@ -117,7 +117,7 @@ class MyOpIncorrect : public MyOpOld { class MyOpNew : public ov::op::Op { public: - OPENVINO_OP("MyOpNew", "custom_opset", MyOpOld); + OPENVINO_OP("MyOpNew", "custom_opset"); MyOpNew() = default; std::shared_ptr clone_with_new_inputs(const ov::OutputVector& inputs) const override { diff --git a/src/core/tests/pass_config.cpp b/src/core/tests/pass_config.cpp index 566534d4f46ce4..3cdd0271a01fec 100644 --- a/src/core/tests/pass_config.cpp +++ b/src/core/tests/pass_config.cpp @@ -19,7 +19,7 @@ using namespace ov::pass; class RenameReLU : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("RanameReLU"); + OPENVINO_MATCHER_PASS_RTTI("RanameReLU"); RenameReLU() : MatcherPass() { auto relu = ov::pass::pattern::wrap_type(); ov::matcher_pass_callback callback = [](pattern::Matcher& m) { @@ -35,7 +35,7 @@ class RenameReLU : public ov::pass::MatcherPass { class RenameSigmoid : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("RenameSigmoid"); + OPENVINO_MATCHER_PASS_RTTI("RenameSigmoid"); RenameSigmoid() : MatcherPass() { auto sigmoid = pattern::wrap_type(); ov::matcher_pass_callback callback = [](pattern::Matcher& m) { @@ -51,7 +51,7 @@ class RenameSigmoid : public ov::pass::MatcherPass { class TestModelPass : public pass::ModelPass { public: - OPENVINO_RTTI("TestModelPass"); + OPENVINO_RTTI("TestModelPass", "0", pass::ModelPass); bool run_on_model(const std::shared_ptr& f) override { pass::Manager manager(get_pass_config()); @@ -66,7 +66,7 @@ class TestModelPass : public pass::ModelPass { class TestGraphRewritePass : public pass::GraphRewrite { public: - OPENVINO_RTTI("TestGraphRewritePass"); + OPENVINO_RTTI("TestGraphRewritePass", "0", pass::GraphRewrite); TestGraphRewritePass() { add_matcher(); add_matcher(); @@ -259,7 +259,7 @@ TEST(PassConfig, EnableDisablePasses9) { class TestNestedMatcher : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TestNestedMatcher"); + OPENVINO_MATCHER_PASS_RTTI("TestNestedMatcher"); TestNestedMatcher() : MatcherPass() { auto any_op = pattern::any_input(); ov::matcher_pass_callback callback = [this](pattern::Matcher& m) { @@ -284,7 +284,7 @@ class TestNestedMatcher : public ov::pass::MatcherPass { class TestNestedGraphRewrite : public pass::GraphRewrite { public: - OPENVINO_RTTI("TestNestedGraphRewrite"); + OPENVINO_RTTI("TestNestedGraphRewrite", "0", pass::GraphRewrite); TestNestedGraphRewrite() { add_matcher(); } diff --git a/src/frontends/common/src/extension/decoder_transformation.cpp b/src/frontends/common/src/extension/decoder_transformation.cpp index 561de1aacd79f9..4e2c436f1c6be0 100644 --- a/src/frontends/common/src/extension/decoder_transformation.cpp +++ b/src/frontends/common/src/extension/decoder_transformation.cpp @@ -12,6 +12,7 @@ using namespace ov::frontend; /// \brief Helper class to register user function as a FunctionPass class CustomModelPass : public ov::pass::ModelPass { public: + OPENVINO_RTTI("CustomModelPass", "0", ov::pass::ModelPass); explicit CustomModelPass(std::function)> pass) : m_pass(std::move(pass)) {} bool run_on_model(const std::shared_ptr& f) override { @@ -25,6 +26,7 @@ class CustomModelPass : public ov::pass::ModelPass { /// \brief Helper class to register user matcher pass initialization as a MatcherPass class CustomMatcherPass : public ov::pass::MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("CustomMatcherPass"); explicit CustomMatcherPass(const std::function& matcher_pass_initializer) { matcher_pass_initializer(this); } diff --git a/src/frontends/ir/src/ir_deserializer.cpp b/src/frontends/ir/src/ir_deserializer.cpp index d7e250f9916302..f18d3404c41fe5 100644 --- a/src/frontends/ir/src/ir_deserializer.cpp +++ b/src/frontends/ir/src/ir_deserializer.cpp @@ -541,7 +541,7 @@ std::shared_ptr ov::XmlDeserializer::parse_function(const pugi::xml_n func_nodes.results.emplace_back(result_node); } - if (const auto& sink = std::dynamic_pointer_cast(node)) { + if (const auto& sink = ov::as_type_ptr(node)) { auto subgraph_op = std::dynamic_pointer_cast(node); if (subgraph_op) { for (const auto& body_model : subgraph_op->get_functions()) { @@ -555,7 +555,7 @@ std::shared_ptr ov::XmlDeserializer::parse_function(const pugi::xml_n } } - if (const auto& read_value = std::dynamic_pointer_cast(node)) { + if (const auto& read_value = ov::as_type_ptr(node)) { variable_id_to_read_value[read_value->get_variable_id()] = read_value; } @@ -567,7 +567,7 @@ std::shared_ptr ov::XmlDeserializer::parse_function(const pugi::xml_n func_nodes.parameters, pugixml::get_str_attr(root, "name", "")); for (const auto& sink : func_nodes.sinks) { - if (const auto& assign = std::dynamic_pointer_cast(sink)) { + if (const auto& assign = ov::as_type_ptr(sink)) { assign->add_control_dependency(variable_id_to_read_value.at(assign->get_variable_id())); } } diff --git a/src/frontends/paddle/src/internal/pass/transform_fakequantize.hpp b/src/frontends/paddle/src/internal/pass/transform_fakequantize.hpp index 6d45edd8ea818a..19abfcbf260d73 100644 --- a/src/frontends/paddle/src/internal/pass/transform_fakequantize.hpp +++ b/src/frontends/paddle/src/internal/pass/transform_fakequantize.hpp @@ -14,7 +14,7 @@ namespace pass { class TransformFakeQuantize : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::paddle::pass::TransformFakeQuantize"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::paddle::pass::TransformFakeQuantize"); TransformFakeQuantize(); private: @@ -23,4 +23,4 @@ class TransformFakeQuantize : public ov::pass::MatcherPass { } // namespace pass } // namespace paddle } // namespace frontend -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/frontends/paddle/src/internal/pass/transform_if.hpp b/src/frontends/paddle/src/internal/pass/transform_if.hpp index 98c66800d6fea6..f71c2b026fd3e4 100644 --- a/src/frontends/paddle/src/internal/pass/transform_if.hpp +++ b/src/frontends/paddle/src/internal/pass/transform_if.hpp @@ -14,7 +14,7 @@ namespace pass { class TransformIf : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::paddle::pass::TransformIf"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::paddle::pass::TransformIf"); TransformIf(std::vector> functions); private: diff --git a/src/frontends/paddle/src/internal/pass/transform_tensorarray.hpp b/src/frontends/paddle/src/internal/pass/transform_tensorarray.hpp index c992bf1eefa4c9..227ce708ad6503 100644 --- a/src/frontends/paddle/src/internal/pass/transform_tensorarray.hpp +++ b/src/frontends/paddle/src/internal/pass/transform_tensorarray.hpp @@ -14,7 +14,7 @@ namespace pass { class TransformTensorArray : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::paddle::pass::TransformTensorArray"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::paddle::pass::TransformTensorArray"); TransformTensorArray(std::vector> functions); private: diff --git a/src/frontends/paddle/src/internal/pass/transform_while.hpp b/src/frontends/paddle/src/internal/pass/transform_while.hpp index de6f381222a554..9a604f520168fe 100644 --- a/src/frontends/paddle/src/internal/pass/transform_while.hpp +++ b/src/frontends/paddle/src/internal/pass/transform_while.hpp @@ -14,7 +14,7 @@ namespace pass { class TransformWhile : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::paddle::pass::TransformWhile"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::paddle::pass::TransformWhile"); TransformWhile(std::vector> functions); private: diff --git a/src/frontends/pytorch/src/helper_ops/internal_op.hpp b/src/frontends/pytorch/src/helper_ops/internal_op.hpp index 8c10192dedda04..b7fe3b5fdc2f44 100644 --- a/src/frontends/pytorch/src/helper_ops/internal_op.hpp +++ b/src/frontends/pytorch/src/helper_ops/internal_op.hpp @@ -41,6 +41,9 @@ class InternalOpDecoder : public DummyDecoder { }; class InternalOperation : public PtFrameworkNode { +public: + OPENVINO_OP("InternalOperation", "internal", PtFrameworkNode); + protected: InternalOperation(const std::string& op_type, const OutputVector& inputs, diff --git a/src/frontends/pytorch/src/helper_ops/packed_sequence.hpp b/src/frontends/pytorch/src/helper_ops/packed_sequence.hpp index 30e1a37c9d1d96..e652832aa65c78 100644 --- a/src/frontends/pytorch/src/helper_ops/packed_sequence.hpp +++ b/src/frontends/pytorch/src/helper_ops/packed_sequence.hpp @@ -13,7 +13,7 @@ namespace pytorch { class PackPadded : public InternalOperation { public: - OPENVINO_OP("PackPadded", "util", ov::op::util::FrameworkNode); + OPENVINO_OP("PackPadded", "util", InternalOperation); PackPadded(const Output& input, const Output& lengths) : InternalOperation("prim::PackPadded", {input, lengths}, 2, "This is PackedSequence pack operation.") { validate_and_infer_types(); @@ -27,7 +27,7 @@ class PackPadded : public InternalOperation { class PadPacked : public InternalOperation { public: - OPENVINO_OP("PadPacked", "util", ov::op::util::FrameworkNode); + OPENVINO_OP("PadPacked", "util", InternalOperation); PadPacked(const Output& input, const Output& lengths) : InternalOperation("prim::PadPacked", {input, lengths}, 2, "This is PackedSequence unpack operation.") { validate_and_infer_types(); diff --git a/src/frontends/pytorch/src/transforms/append_list_unpack_replacer.hpp b/src/frontends/pytorch/src/transforms/append_list_unpack_replacer.hpp index d3ecd8b28fc636..84b28c8c7e21d3 100644 --- a/src/frontends/pytorch/src/transforms/append_list_unpack_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/append_list_unpack_replacer.hpp @@ -14,7 +14,7 @@ namespace pass { class AppendListUnpackReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::AppendListUnpackReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::AppendListUnpackReplacer"); AppendListUnpackReplacer(); }; diff --git a/src/frontends/pytorch/src/transforms/aten_cat_replacer.cpp b/src/frontends/pytorch/src/transforms/aten_cat_replacer.cpp index e42184ab6fad7f..2fe96e4691e01c 100644 --- a/src/frontends/pytorch/src/transforms/aten_cat_replacer.cpp +++ b/src/frontends/pytorch/src/transforms/aten_cat_replacer.cpp @@ -64,7 +64,7 @@ AtenCatToConcat::AtenCatToConcat() { } std::shared_ptr input_node = cat->get_input_node_shared_ptr(0); - if (auto loop = std::dynamic_pointer_cast(input_node)) { + if (auto loop = ov::as_type_ptr(input_node)) { // case when concatenation is done inside the Loop auto body = loop->get_function(); auto output_index = cat->input(0).get_source_output().get_index(); @@ -84,7 +84,7 @@ AtenCatToConcat::AtenCatToConcat() { "::cat unsupported case: aten::append wasn't found inside prim::Loop body."); return false; } - auto param = std::dynamic_pointer_cast(append->get_input_node_shared_ptr(0)); + auto param = ov::as_type_ptr(append->get_input_node_shared_ptr(0)); if (!param) { add_exception_to_fw_node( cat, diff --git a/src/frontends/pytorch/src/transforms/aten_cat_replacer.hpp b/src/frontends/pytorch/src/transforms/aten_cat_replacer.hpp index 8041e282445353..ef2d06da848132 100644 --- a/src/frontends/pytorch/src/transforms/aten_cat_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/aten_cat_replacer.hpp @@ -15,11 +15,11 @@ namespace pass { // This transformation replaces pattern prim::ListConstruct->aten::append{none or many}->aten::cat class AtenCatToConcat : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::AtenCatToConcat"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::AtenCatToConcat"); AtenCatToConcat(); }; } // namespace pass } // namespace pytorch } // namespace frontend -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/frontends/pytorch/src/transforms/aten_getitem_replacer.hpp b/src/frontends/pytorch/src/transforms/aten_getitem_replacer.hpp index db99e2d65b2ef1..3d6de2c76b2c83 100644 --- a/src/frontends/pytorch/src/transforms/aten_getitem_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/aten_getitem_replacer.hpp @@ -14,7 +14,7 @@ namespace pass { class AtenGetItemReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::AtenGetItemReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::AtenGetItemReplacer"); AtenGetItemReplacer(); }; diff --git a/src/frontends/pytorch/src/transforms/aten_index_put_replacer.hpp b/src/frontends/pytorch/src/transforms/aten_index_put_replacer.hpp index e74cf40e057bf2..b641ca3146d0c0 100644 --- a/src/frontends/pytorch/src/transforms/aten_index_put_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/aten_index_put_replacer.hpp @@ -15,7 +15,7 @@ namespace pass { class PYTORCH_API AtenIndexPutReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::AtenIndexPutReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::AtenIndexPutReplacer"); AtenIndexPutReplacer(); }; diff --git a/src/frontends/pytorch/src/transforms/aten_index_replacer.hpp b/src/frontends/pytorch/src/transforms/aten_index_replacer.hpp index b9a034e3a2721f..67afefbef53f57 100644 --- a/src/frontends/pytorch/src/transforms/aten_index_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/aten_index_replacer.hpp @@ -16,7 +16,7 @@ namespace pass { // This transformation replaces pattern prim::ListConstruct->aten::index class PYTORCH_API AtenIndexToSelect : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::AtenIndexToSelect"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::AtenIndexToSelect"); AtenIndexToSelect(); }; diff --git a/src/frontends/pytorch/src/transforms/aten_stack_list_construct_replacer.cpp b/src/frontends/pytorch/src/transforms/aten_stack_list_construct_replacer.cpp index aad973c3769246..be32e4457d1766 100644 --- a/src/frontends/pytorch/src/transforms/aten_stack_list_construct_replacer.cpp +++ b/src/frontends/pytorch/src/transforms/aten_stack_list_construct_replacer.cpp @@ -37,7 +37,7 @@ AtenStackListConstructReplacer::AtenStackListConstructReplacer() { const auto& pattern_map = m.get_pattern_value_map(); const auto& input_node = pattern_map.at(list_construct).get_node_shared_ptr(); auto axis_node = pattern_map.at(axis).get_node_shared_ptr(); - auto axis_const = std::dynamic_pointer_cast(axis_node); + auto axis_const = ov::as_type_ptr(axis_node); auto axis = axis_const->cast_vector(); if (axis.size() != 1) { add_exception_to_fw_node(stack, "aten::stack has multiple axes, only one is supported."); diff --git a/src/frontends/pytorch/src/transforms/aten_stack_list_construct_replacer.hpp b/src/frontends/pytorch/src/transforms/aten_stack_list_construct_replacer.hpp index ab7376619c4469..51b9832c2e35ae 100644 --- a/src/frontends/pytorch/src/transforms/aten_stack_list_construct_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/aten_stack_list_construct_replacer.hpp @@ -14,7 +14,7 @@ namespace pass { class AtenStackListConstructReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::AtenStackListConstructReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::AtenStackListConstructReplacer"); AtenStackListConstructReplacer(); }; diff --git a/src/frontends/pytorch/src/transforms/dict_resolver.cpp b/src/frontends/pytorch/src/transforms/dict_resolver.cpp index 0f52e4da939e08..98ff9049e03e6f 100644 --- a/src/frontends/pytorch/src/transforms/dict_resolver.cpp +++ b/src/frontends/pytorch/src/transforms/dict_resolver.cpp @@ -31,8 +31,8 @@ bool DictParameterResolver::run_on_model(const std::shared_ptr& model) { for (const auto inp : targets) { const auto getitem_node = cast_fw_node(inp.get_node()->shared_from_this(), "aten::__getitem__"); if (getitem_node) { - const auto index_node = std::dynamic_pointer_cast( - getitem_node->get_input_node_shared_ptr(1)); + const auto index_node = + ov::as_type_ptr(getitem_node->get_input_node_shared_ptr(1)); if (!index_node) { at_least_one_unused = true; continue; @@ -85,7 +85,7 @@ bool DictResultResolver::run_on_model(const std::shared_ptr& model) { for (size_t i = 0; i < inputs.size(); i += 2) { auto new_output = inputs.at(i + 1); const auto& name_node = inputs.at(i); - auto fw_node = std::dynamic_pointer_cast(name_node.get_node_shared_ptr()); + auto fw_node = ov::as_type_ptr(name_node.get_node_shared_ptr()); if (!fw_node) { add_exception_to_fw_node( dict_construct_node, diff --git a/src/frontends/pytorch/src/transforms/dict_resolver.hpp b/src/frontends/pytorch/src/transforms/dict_resolver.hpp index 150b1361dab57d..54ec9b2a42afa3 100644 --- a/src/frontends/pytorch/src/transforms/dict_resolver.hpp +++ b/src/frontends/pytorch/src/transforms/dict_resolver.hpp @@ -15,13 +15,13 @@ namespace pass { // This transformation replaces pattern Parameter(Dict)->aten::__getitem__ class DictParameterResolver : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::DictParameterResolver"); + OPENVINO_RTTI("ov::frontend::pytorch::pass::DictParameterResolver", "util", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& model) override; }; // This transformation replaces pattern prim::DictConstruct->Result class DictResultResolver : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::DictResultResolver"); + OPENVINO_RTTI("ov::frontend::pytorch::pass::DictResultResolver", "util", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& model) override; }; diff --git a/src/frontends/pytorch/src/transforms/einsum_list_construct.hpp b/src/frontends/pytorch/src/transforms/einsum_list_construct.hpp index 413c9f526214ae..ba792cbbb820af 100644 --- a/src/frontends/pytorch/src/transforms/einsum_list_construct.hpp +++ b/src/frontends/pytorch/src/transforms/einsum_list_construct.hpp @@ -14,11 +14,11 @@ namespace pass { class AtenEinsumListConstructReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::AtenEinsumListConstructReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::AtenEinsumListConstructReplacer"); AtenEinsumListConstructReplacer(); }; } // namespace pass } // namespace pytorch } // namespace frontend -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/frontends/pytorch/src/transforms/index_loop_getitem_replacer.hpp b/src/frontends/pytorch/src/transforms/index_loop_getitem_replacer.hpp index 89627723c3d515..dac4bdafa09d27 100644 --- a/src/frontends/pytorch/src/transforms/index_loop_getitem_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/index_loop_getitem_replacer.hpp @@ -18,7 +18,7 @@ namespace pass { */ class IndexLoopGetitemReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::IndexLoopGetitemReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::IndexLoopGetitemReplacer"); IndexLoopGetitemReplacer(); }; diff --git a/src/frontends/pytorch/src/transforms/irfftn_complex_replacer.cpp b/src/frontends/pytorch/src/transforms/irfftn_complex_replacer.cpp index c64aea01ce38c7..072d3fb6753ffd 100644 --- a/src/frontends/pytorch/src/transforms/irfftn_complex_replacer.cpp +++ b/src/frontends/pytorch/src/transforms/irfftn_complex_replacer.cpp @@ -116,8 +116,8 @@ IRFFTNComplexReplacer::IRFFTNComplexReplacer() { // Handle norm parameter indicating normalization mode to use. Defaults to "backward". std::string norm; - if (const auto& fw_node_mode = std::dynamic_pointer_cast( - irfftn_op->input_value(3).get_node_shared_ptr())) { + if (const auto& fw_node_mode = + ov::as_type_ptr(irfftn_op->input_value(3).get_node_shared_ptr())) { const auto& attrs = fw_node_mode->get_attrs(); if (attrs.find("string_value") != attrs.end()) { norm = attrs.at("string_value"); diff --git a/src/frontends/pytorch/src/transforms/irfftn_complex_replacer.hpp b/src/frontends/pytorch/src/transforms/irfftn_complex_replacer.hpp index 3aa6991aed5d4d..d3a5738a82ddbf 100644 --- a/src/frontends/pytorch/src/transforms/irfftn_complex_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/irfftn_complex_replacer.hpp @@ -14,7 +14,7 @@ namespace pass { class IRFFTNComplexReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::IRFFTNComplexReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::IRFFTNComplexReplacer"); IRFFTNComplexReplacer(); }; diff --git a/src/frontends/pytorch/src/transforms/listconstruct_replacer.hpp b/src/frontends/pytorch/src/transforms/listconstruct_replacer.hpp index 4b265d58d24541..49dac1f83d112a 100644 --- a/src/frontends/pytorch/src/transforms/listconstruct_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/listconstruct_replacer.hpp @@ -14,7 +14,7 @@ namespace pass { class ListConstructReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::ListConstructReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::ListConstructReplacer"); ListConstructReplacer(); }; diff --git a/src/frontends/pytorch/src/transforms/min_max_prim_list_construct_replacer.hpp b/src/frontends/pytorch/src/transforms/min_max_prim_list_construct_replacer.hpp index 371b3be7ff7cd0..f8dc9a2037a130 100644 --- a/src/frontends/pytorch/src/transforms/min_max_prim_list_construct_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/min_max_prim_list_construct_replacer.hpp @@ -14,7 +14,7 @@ namespace pass { class MinMaxPrimListConstructReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::MinMaxPrimListConstructReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::MinMaxPrimListConstructReplacer"); MinMaxPrimListConstructReplacer(); }; diff --git a/src/frontends/pytorch/src/transforms/prim_list_construct_pad.hpp b/src/frontends/pytorch/src/transforms/prim_list_construct_pad.hpp index 5e5322969f5285..bbd494f2b97b98 100644 --- a/src/frontends/pytorch/src/transforms/prim_list_construct_pad.hpp +++ b/src/frontends/pytorch/src/transforms/prim_list_construct_pad.hpp @@ -14,11 +14,11 @@ namespace pass { class PrimListConstructPadReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::PrimListConstructPadReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::PrimListConstructPadReplacer"); PrimListConstructPadReplacer(); }; } // namespace pass } // namespace pytorch } // namespace frontend -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/frontends/pytorch/src/transforms/prim_list_tuple_construct_replacer.hpp b/src/frontends/pytorch/src/transforms/prim_list_tuple_construct_replacer.hpp index 31a025d6d90493..4eb8454101ea2e 100644 --- a/src/frontends/pytorch/src/transforms/prim_list_tuple_construct_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/prim_list_tuple_construct_replacer.hpp @@ -14,7 +14,7 @@ namespace pass { class DecomposeListTupleResults : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::DecomposeListTupleResults"); + OPENVINO_RTTI("ov::frontend::pytorch::pass::DecomposeListTupleResults", "util", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& model) override; }; diff --git a/src/frontends/pytorch/src/transforms/prim_list_unpack_replacer.cpp b/src/frontends/pytorch/src/transforms/prim_list_unpack_replacer.cpp index 67e2b5b37ecaac..32806daad495ab 100644 --- a/src/frontends/pytorch/src/transforms/prim_list_unpack_replacer.cpp +++ b/src/frontends/pytorch/src/transforms/prim_list_unpack_replacer.cpp @@ -305,7 +305,7 @@ PrimListUnpackReplacer::PrimListUnpackReplacer() { copy_runtime_info_and_name(list_unpack, rg.get(), {input_node, meshgrid_input_node}); replace_node(list_unpack, outputs); return true; - } else if (auto shape_of = std::dynamic_pointer_cast(input_node)) { + } else if (auto shape_of = ov::as_type_ptr(input_node)) { // case aten::size as input // Number of ListUnpack outputs should be equal to rank of input shape. auto axis_0 = v0::Constant::create(element::i32, Shape{}, {0}); @@ -321,7 +321,7 @@ PrimListUnpackReplacer::PrimListUnpackReplacer() { replace_node(list_unpack, res); return true; - } else if (auto slice = std::dynamic_pointer_cast(input_node)) { + } else if (auto slice = ov::as_type_ptr(input_node)) { // case aten::slice as input // Number of ListUnpack outputs should be equal to rank of input shape. auto axis_0 = v0::Constant::create(element::i32, Shape{}, {0}); diff --git a/src/frontends/pytorch/src/transforms/prim_list_unpack_replacer.hpp b/src/frontends/pytorch/src/transforms/prim_list_unpack_replacer.hpp index 81521716a23430..449adc8a78779d 100644 --- a/src/frontends/pytorch/src/transforms/prim_list_unpack_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/prim_list_unpack_replacer.hpp @@ -14,11 +14,11 @@ namespace pass { class PrimListUnpackReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::PrimListUnpackReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::PrimListUnpackReplacer"); PrimListUnpackReplacer(); }; } // namespace pass } // namespace pytorch } // namespace frontend -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/frontends/pytorch/src/transforms/prim_unpack_parameter_replacer.hpp b/src/frontends/pytorch/src/transforms/prim_unpack_parameter_replacer.hpp index 2616b66fb58ab6..b28d75dec6de81 100644 --- a/src/frontends/pytorch/src/transforms/prim_unpack_parameter_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/prim_unpack_parameter_replacer.hpp @@ -27,7 +27,7 @@ namespace pass { // tuples only and the most nested objects in those tuples are tensors. class DecomposeUnpackParameters : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::DecomposeUnpackParameters"); + OPENVINO_RTTI("ov::frontend::pytorch::pass::DecomposeUnpackParameters", "util", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& model) override; }; diff --git a/src/frontends/pytorch/src/transforms/quantized_node_remover.hpp b/src/frontends/pytorch/src/transforms/quantized_node_remover.hpp index e4ca3d5806d494..2ae26866f4fabb 100644 --- a/src/frontends/pytorch/src/transforms/quantized_node_remover.hpp +++ b/src/frontends/pytorch/src/transforms/quantized_node_remover.hpp @@ -20,7 +20,7 @@ namespace pass { */ class QuantizedNodeRemover : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::QuantizedNodeRemover"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::QuantizedNodeRemover"); QuantizedNodeRemover(); }; diff --git a/src/frontends/pytorch/src/transforms/remove_packing_ops.cpp b/src/frontends/pytorch/src/transforms/remove_packing_ops.cpp index 267010e9c01e56..6c69364e7fb3b8 100644 --- a/src/frontends/pytorch/src/transforms/remove_packing_ops.cpp +++ b/src/frontends/pytorch/src/transforms/remove_packing_ops.cpp @@ -116,7 +116,7 @@ RemovePackingOps::RemovePackingOps() { if (!pack_node) return false; if (as_type_ptr(pack_node)) - pack_node = std::dynamic_pointer_cast(pack_node->input_value(0).get_node_shared_ptr()); + pack_node = ov::as_type_ptr(pack_node->input_value(0).get_node_shared_ptr()); if (!pack_node) return false; diff --git a/src/frontends/pytorch/src/transforms/remove_packing_ops.hpp b/src/frontends/pytorch/src/transforms/remove_packing_ops.hpp index 773100dfc35af9..a236a3fd081568 100644 --- a/src/frontends/pytorch/src/transforms/remove_packing_ops.hpp +++ b/src/frontends/pytorch/src/transforms/remove_packing_ops.hpp @@ -17,7 +17,7 @@ namespace pass { */ class MovePackThroughLstm : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::MovePackThroughLstm"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::MovePackThroughLstm"); MovePackThroughLstm(); }; @@ -26,7 +26,7 @@ class MovePackThroughLstm : public ov::pass::MatcherPass { */ class RemovePackingOps : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::RemovePackingOps"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::RemovePackingOps"); RemovePackingOps(); }; diff --git a/src/frontends/pytorch/src/transforms/reverseprop_resolver.hpp b/src/frontends/pytorch/src/transforms/reverseprop_resolver.hpp index a26249e4841d4b..8bc3109e479cf5 100644 --- a/src/frontends/pytorch/src/transforms/reverseprop_resolver.hpp +++ b/src/frontends/pytorch/src/transforms/reverseprop_resolver.hpp @@ -17,7 +17,7 @@ namespace pass { */ class ReversepropResolver : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::ReversepropResolver"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::ReversepropResolver"); ReversepropResolver(); }; diff --git a/src/frontends/pytorch/src/transforms/rfftn_complex_replacer.cpp b/src/frontends/pytorch/src/transforms/rfftn_complex_replacer.cpp index 390a1ea519e4b2..e44249784a70a0 100644 --- a/src/frontends/pytorch/src/transforms/rfftn_complex_replacer.cpp +++ b/src/frontends/pytorch/src/transforms/rfftn_complex_replacer.cpp @@ -90,8 +90,8 @@ RFFTNComplexReplacer::RFFTNComplexReplacer() { // Handle norm parameter indicating normalization mode to use. Defaults to "backward". std::string norm; - if (const auto& fw_node_mode = std::dynamic_pointer_cast( - rfftn_op->input_value(3).get_node_shared_ptr())) { + if (const auto& fw_node_mode = + ov::as_type_ptr(rfftn_op->input_value(3).get_node_shared_ptr())) { const auto& attrs = fw_node_mode->get_attrs(); if (attrs.find("string_value") != attrs.end()) { norm = attrs.at("string_value"); diff --git a/src/frontends/pytorch/src/transforms/rfftn_complex_replacer.hpp b/src/frontends/pytorch/src/transforms/rfftn_complex_replacer.hpp index 04ec53ab0f1561..5115e38bdf55b1 100644 --- a/src/frontends/pytorch/src/transforms/rfftn_complex_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/rfftn_complex_replacer.hpp @@ -14,7 +14,7 @@ namespace pass { class RFFTNComplexReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::RFFTNComplexReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::RFFTNComplexReplacer"); RFFTNComplexReplacer(); }; diff --git a/src/frontends/pytorch/src/transforms/softmax_reshape_elimination.hpp b/src/frontends/pytorch/src/transforms/softmax_reshape_elimination.hpp index c0d78499f575c6..5e07506686a836 100644 --- a/src/frontends/pytorch/src/transforms/softmax_reshape_elimination.hpp +++ b/src/frontends/pytorch/src/transforms/softmax_reshape_elimination.hpp @@ -19,10 +19,11 @@ namespace pass { */ class SoftmaxReshapeElimination : public ov::pass::MatcherPass { public: + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::SoftmaxReshapeElimination"); SoftmaxReshapeElimination(); }; } // namespace pass } // namespace pytorch } // namespace frontend -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/frontends/pytorch/src/transforms/string_equality_replacer.cpp b/src/frontends/pytorch/src/transforms/string_equality_replacer.cpp index 60a12b802f2a5f..3e2b752b4d65ef 100644 --- a/src/frontends/pytorch/src/transforms/string_equality_replacer.cpp +++ b/src/frontends/pytorch/src/transforms/string_equality_replacer.cpp @@ -34,8 +34,7 @@ StringEqualityReplacer::StringEqualityReplacer() { ov::matcher_pass_callback callback = [=](pattern::Matcher& m) { auto& pattern_map = m.get_pattern_value_map(); - auto lhs_node = - std::dynamic_pointer_cast(pattern_map.at(framework_node_lhs).get_node_shared_ptr()); + auto lhs_node = ov::as_type_ptr(pattern_map.at(framework_node_lhs).get_node_shared_ptr()); if (!lhs_node) { return false; } @@ -45,8 +44,7 @@ StringEqualityReplacer::StringEqualityReplacer() { } std::string lhs = lhs_attrs.at("string_value"); - auto rhs_node = - std::dynamic_pointer_cast(pattern_map.at(framework_node_rhs).get_node_shared_ptr()); + auto rhs_node = ov::as_type_ptr(pattern_map.at(framework_node_rhs).get_node_shared_ptr()); if (!rhs_node) { return false; } @@ -57,14 +55,14 @@ StringEqualityReplacer::StringEqualityReplacer() { std::string rhs = rhs_attrs.at("string_value"); auto equal_node = pattern_map.at(equal_op).get_node_shared_ptr(); - if (auto equal = std::dynamic_pointer_cast(equal_node)) { + if (auto equal = ov::as_type_ptr(equal_node)) { auto const_result = v0::Constant::create(element::boolean, Shape{}, {lhs == rhs}); copy_runtime_info_and_name(equal_node, {const_result}); replace_node(equal_node, const_result); return true; }; auto not_equal_node = pattern_map.at(not_equal_op).get_node_shared_ptr(); - if (auto equal = std::dynamic_pointer_cast(not_equal_node)) { + if (auto equal = ov::as_type_ptr(not_equal_node)) { auto const_result = v0::Constant::create(element::boolean, Shape{}, {lhs != rhs}); copy_runtime_info_and_name(equal_node, {const_result}); replace_node(equal_node, const_result); diff --git a/src/frontends/pytorch/src/transforms/string_equality_replacer.hpp b/src/frontends/pytorch/src/transforms/string_equality_replacer.hpp index 20dc3cc98b7f32..dfc826dfd600c0 100644 --- a/src/frontends/pytorch/src/transforms/string_equality_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/string_equality_replacer.hpp @@ -14,7 +14,7 @@ namespace pass { class StringEqualityReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::StringEqualityReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::StringEqualityReplacer"); StringEqualityReplacer(); }; diff --git a/src/frontends/pytorch/src/transforms/torchfx_gptq_pattern_replacer.cpp b/src/frontends/pytorch/src/transforms/torchfx_gptq_pattern_replacer.cpp index caeeb8c557b380..d1203ee3e91c39 100644 --- a/src/frontends/pytorch/src/transforms/torchfx_gptq_pattern_replacer.cpp +++ b/src/frontends/pytorch/src/transforms/torchfx_gptq_pattern_replacer.cpp @@ -68,18 +68,14 @@ GPTQDecompressionReplacer::GPTQDecompressionReplacer() { } const auto& pattern_map = m.get_pattern_value_map(); auto unsqueeze_1_node = pattern_map.at(unsqueeze_1).get_node_shared_ptr(); - auto unsqueeze_1_in0_const = - std::dynamic_pointer_cast(unsqueeze_1_node->get_input_node_shared_ptr(0)); - auto unsqueeze_1_in1_const = - std::dynamic_pointer_cast(unsqueeze_1_node->get_input_node_shared_ptr(1)); + auto unsqueeze_1_in0_const = ov::as_type_ptr(unsqueeze_1_node->get_input_node_shared_ptr(0)); + auto unsqueeze_1_in1_const = ov::as_type_ptr(unsqueeze_1_node->get_input_node_shared_ptr(1)); auto abs_node = pattern_map.at(abs).get_node_shared_ptr(); - auto abs_in_const = std::dynamic_pointer_cast(abs_node->get_input_node_shared_ptr(0)); + auto abs_in_const = ov::as_type_ptr(abs_node->get_input_node_shared_ptr(0)); auto broadcast_node = pattern_map.at(broadcast).get_node_shared_ptr(); auto unsqueeze_2_node = pattern_map.at(unsqueeze_2).get_node_shared_ptr(); - auto unsqueeze_2_in0_const = - std::dynamic_pointer_cast(unsqueeze_2_node->get_input_node_shared_ptr(0)); - auto unsqueeze_2_in1_const = - std::dynamic_pointer_cast(unsqueeze_2_node->get_input_node_shared_ptr(1)); + auto unsqueeze_2_in0_const = ov::as_type_ptr(unsqueeze_2_node->get_input_node_shared_ptr(0)); + auto unsqueeze_2_in1_const = ov::as_type_ptr(unsqueeze_2_node->get_input_node_shared_ptr(1)); OutputVector outputs_1(unsqueeze_1_node->get_output_size()); OutputVector unsqueeze_1_inputs(2); @@ -110,9 +106,9 @@ GPTQDecompressionReplacer::GPTQDecompressionReplacer() { return false; } const int32_t* rs_in0 = - std::dynamic_pointer_cast(outputs_3[0].get_node_shared_ptr())->get_data_ptr(); + ov::as_type_ptr(outputs_3[0].get_node_shared_ptr())->get_data_ptr(); const int32_t* rs_in1 = - std::dynamic_pointer_cast(outputs_4[0].get_node_shared_ptr())->get_data_ptr(); + ov::as_type_ptr(outputs_4[0].get_node_shared_ptr())->get_data_ptr(); auto shifted_const = std::make_shared(element::i32, outputs_3[0].get_shape()); auto dst = const_cast(reinterpret_cast(shifted_const->get_data_ptr())); if (!dst) @@ -156,8 +152,7 @@ GPTQDecompressionReplacer::GPTQDecompressionReplacer() { } else { auto convert_3_node = pattern_map.at(convert_3).get_node_shared_ptr(); auto convert_4_node = pattern_map.at(convert_4).get_node_shared_ptr(); - auto convert_4_in_const = - std::dynamic_pointer_cast(convert_4_node->get_input_node_shared_ptr(0)); + auto convert_4_in_const = ov::as_type_ptr(convert_4_node->get_input_node_shared_ptr(0)); auto add_node = pattern_map.at(add).get_node_shared_ptr(); OutputVector outputs_5(convert_3_node->get_output_size()); if (!convert_3_node->constant_fold(outputs_5, shifted_const->outputs())) { @@ -177,7 +172,7 @@ GPTQDecompressionReplacer::GPTQDecompressionReplacer() { } auto convert_2_node = pattern_map.at(convert_2).get_node_shared_ptr(); - auto convert_2_in_const = std::dynamic_pointer_cast(convert_2_node->get_input_node_shared_ptr(0)); + auto convert_2_in_const = ov::as_type_ptr(convert_2_node->get_input_node_shared_ptr(0)); OutputVector outputs_8(convert_2_node->get_output_size()); if (!convert_2_node->constant_fold(outputs_8, convert_2_in_const->outputs())) { @@ -187,9 +182,9 @@ GPTQDecompressionReplacer::GPTQDecompressionReplacer() { OutputVector outputs_9(bitwise_and->get_output_size()); const int8_t* and_in0 = - std::dynamic_pointer_cast(outputs_7[0].get_node_shared_ptr())->get_data_ptr(); + ov::as_type_ptr(outputs_7[0].get_node_shared_ptr())->get_data_ptr(); const int8_t* and_in1 = - std::dynamic_pointer_cast(outputs_8[0].get_node_shared_ptr())->get_data_ptr(); + ov::as_type_ptr(outputs_8[0].get_node_shared_ptr())->get_data_ptr(); auto masked_const = std::make_shared(element::i8, outputs_7[0].get_shape()); auto masked_dst = const_cast(reinterpret_cast(masked_const->get_data_ptr())); if (!masked_dst) @@ -258,15 +253,14 @@ GPTQMultPatternReplacer::GPTQMultPatternReplacer() { auto reshape3_node = pattern_map.at(reshape_3).get_node_shared_ptr(); // auto mult_node = pattern_map.at(mult).get_node_shared_ptr(); - auto add_input0_const = std::dynamic_pointer_cast(convert_1_node->get_input_node_shared_ptr(0)); + auto add_input0_const = ov::as_type_ptr(convert_1_node->get_input_node_shared_ptr(0)); if (add_input0_const->get_element_type() != element::u4) { return false; } auto add_in0_ptr = add_input0_const->get_data_ptr(); uint32_t add_val = 0; if (convert_2_node) { - auto convert_2_input_const = - std::dynamic_pointer_cast(convert_2_node->get_input_node_shared_ptr(0)); + auto convert_2_input_const = ov::as_type_ptr(convert_2_node->get_input_node_shared_ptr(0)); auto add_in1_ptr = convert_2_input_const->get_data_ptr(); if (!add_in1_ptr) return false; @@ -289,7 +283,7 @@ GPTQMultPatternReplacer::GPTQMultPatternReplacer() { } const auto& static_shape_2 = reshape2_node->get_shape(); - auto reshape2_in0_const = std::dynamic_pointer_cast(convert_4_node->get_input_node_shared_ptr(0)); + auto reshape2_in0_const = ov::as_type_ptr(convert_4_node->get_input_node_shared_ptr(0)); auto sub_replace_const = std::make_shared(reshape2_in0_const->get_element_type(), static_shape_2, reshape2_in0_const->get_data_ptr()); @@ -297,7 +291,7 @@ GPTQMultPatternReplacer::GPTQMultPatternReplacer() { auto new_sub_node = std::make_shared(new_convert_node, add_replace_const); const auto& static_shape_3 = reshape3_node->get_shape(); - auto reshape3_in0_const = std::dynamic_pointer_cast(reshape3_node->get_input_node_shared_ptr(0)); + auto reshape3_in0_const = ov::as_type_ptr(reshape3_node->get_input_node_shared_ptr(0)); auto mult_scale_const = std::make_shared(reshape3_in0_const->get_element_type(), static_shape_3, reshape3_in0_const->get_data_ptr()); diff --git a/src/frontends/pytorch/src/transforms/torchfx_gptq_pattern_replacer.hpp b/src/frontends/pytorch/src/transforms/torchfx_gptq_pattern_replacer.hpp index 046a774e56ef8e..a77616b53813be 100644 --- a/src/frontends/pytorch/src/transforms/torchfx_gptq_pattern_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/torchfx_gptq_pattern_replacer.hpp @@ -15,7 +15,7 @@ namespace pass { // This transformation replaces the GPTQ pattern with a Constant node class GPTQDecompressionReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::GPTQDecompressionReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::GPTQDecompressionReplacer"); GPTQDecompressionReplacer(); }; @@ -24,7 +24,7 @@ class GPTQDecompressionReplacer : public ov::pass::MatcherPass { // additional optimizations class GPTQMultPatternReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::GPTQMultPatternReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::GPTQMultPatternReplacer"); GPTQMultPatternReplacer(); }; diff --git a/src/frontends/pytorch/src/transforms/tuple_unpack_replacer.cpp b/src/frontends/pytorch/src/transforms/tuple_unpack_replacer.cpp index 7ea557fa81682d..23b4f56329e80d 100644 --- a/src/frontends/pytorch/src/transforms/tuple_unpack_replacer.cpp +++ b/src/frontends/pytorch/src/transforms/tuple_unpack_replacer.cpp @@ -52,7 +52,7 @@ bool TupleUnpackInBodyReplacer::run_on_model(const std::shared_ptr& model if (if_op) { for (size_t i = 1; i < if_op->get_input_size(); i++) { auto input = if_op->input_value(i); - auto tuple_construct = std::dynamic_pointer_cast( + auto tuple_construct = ov::as_type_ptr( cast_fw_node(input.get_node_shared_ptr(), "prim::TupleConstruct")); if (!tuple_construct) { continue; diff --git a/src/frontends/pytorch/src/transforms/tuple_unpack_replacer.hpp b/src/frontends/pytorch/src/transforms/tuple_unpack_replacer.hpp index 8d737c3d15947d..6fd1d9dd041dc0 100644 --- a/src/frontends/pytorch/src/transforms/tuple_unpack_replacer.hpp +++ b/src/frontends/pytorch/src/transforms/tuple_unpack_replacer.hpp @@ -14,17 +14,17 @@ namespace pass { class PrimTupleUnpackReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::PrimTupleUnpackReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::PrimTupleUnpackReplacer"); PrimTupleUnpackReplacer(); }; class TupleUnpackInBodyReplacer : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::TupleUnpackInBodyReplacer"); + OPENVINO_RTTI("ov::frontend::pytorch::pass::TupleUnpackInBodyReplacer", "util", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& model) override; }; } // namespace pass } // namespace pytorch } // namespace frontend -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/frontends/pytorch/src/transforms/u4_block_repack.cpp b/src/frontends/pytorch/src/transforms/u4_block_repack.cpp index 797fa531c43b60..3513d364175045 100644 --- a/src/frontends/pytorch/src/transforms/u4_block_repack.cpp +++ b/src/frontends/pytorch/src/transforms/u4_block_repack.cpp @@ -49,8 +49,7 @@ U4BlockRepack::U4BlockRepack(bool is_symmetrical) { std::make_shared(m_reshape2, "ov::frontend::pytorch::pass::U4BlockRepack"), [=](Matcher& m) { auto& pattern_to_output = m.get_pattern_value_map(); - auto constant = - std::dynamic_pointer_cast(pattern_to_output[m_constant].get_node_shared_ptr()); + auto constant = ov::as_type_ptr(pattern_to_output[m_constant].get_node_shared_ptr()); if (!constant) return false; auto reshape1 = pattern_to_output[m_reshape1].get_node_shared_ptr(); @@ -89,13 +88,13 @@ U4BlockRepack::U4BlockRepack(bool is_symmetrical) { if (reshape_targets.size() != 1) return false; auto convert = reshape_targets.begin()->get_node()->shared_from_this(); - if (!std::dynamic_pointer_cast(convert)) + if (!ov::as_type_ptr(convert)) return false; auto convert_targets = convert->output(0).get_target_inputs(); if (convert_targets.size() != 1) return false; auto subtract = convert_targets.begin()->get_node()->shared_from_this(); - if (!std::dynamic_pointer_cast(subtract)) + if (!ov::as_type_ptr(subtract)) return false; pattern_root = subtract; copy_from.push_back(std::move(convert)); @@ -145,8 +144,7 @@ U4ConvertReshape::U4ConvertReshape() { std::make_shared(m_reshape, "ov::frontend::pytorch::pass::U4ConvertReshape"), [=](Matcher& m) { auto& pattern_to_output = m.get_pattern_value_map(); - auto u4_const = - std::dynamic_pointer_cast(pattern_to_output[m_constant].get_node_shared_ptr()); + auto u4_const = ov::as_type_ptr(pattern_to_output[m_constant].get_node_shared_ptr()); if (!u4_const) return false; @@ -158,15 +156,15 @@ U4ConvertReshape::U4ConvertReshape() { std::shared_ptr new_const; if (pattern_to_output.count(m_constant_8)) { - auto constant_8 = std::dynamic_pointer_cast( - pattern_to_output[m_constant_8].get_node_shared_ptr()); + auto constant_8 = + ov::as_type_ptr(pattern_to_output[m_constant_8].get_node_shared_ptr()); if (ov::shape_size(constant_8->get_output_shape(0)) != 1 || constant_8->get_output_element_type(0).is_real() || constant_8->cast_vector()[0] != 8) return false; if (pattern_to_output.count(m_constant_1)) { - auto constant_1 = std::dynamic_pointer_cast( - pattern_to_output[m_constant_1].get_node_shared_ptr()); + auto constant_1 = + ov::as_type_ptr(pattern_to_output[m_constant_1].get_node_shared_ptr()); if (ov::shape_size(constant_1->get_output_shape(0)) != 1 || constant_1->get_output_element_type(0).is_real() || constant_1->cast_vector()[0] != 1) return false; diff --git a/src/frontends/pytorch/src/transforms/u4_block_repack.hpp b/src/frontends/pytorch/src/transforms/u4_block_repack.hpp index 99742ff148813a..891fd93554f558 100644 --- a/src/frontends/pytorch/src/transforms/u4_block_repack.hpp +++ b/src/frontends/pytorch/src/transforms/u4_block_repack.hpp @@ -14,13 +14,13 @@ namespace pass { class U4BlockRepack : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::U4BlockRepack"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::U4BlockRepack"); U4BlockRepack(bool is_symmetrical = false); }; class U4ConvertReshape : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::pytorch::pass::U4ConvertReshape"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::pytorch::pass::U4ConvertReshape"); U4ConvertReshape(); }; diff --git a/src/frontends/tensorflow/src/transformations/switch_merge_resolve.hpp b/src/frontends/tensorflow/src/transformations/switch_merge_resolve.hpp index 6038005e2eb4c4..fed01588fbc790 100644 --- a/src/frontends/tensorflow/src/transformations/switch_merge_resolve.hpp +++ b/src/frontends/tensorflow/src/transformations/switch_merge_resolve.hpp @@ -20,7 +20,7 @@ namespace pass { // Merge nodes can have the same eliminated markers that means the fused If will have several outputs. class SwitchMergeResolver : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ov::frontend::tensorflow::SwitchMergeResolver"); + OPENVINO_RTTI("ov::frontend::tensorflow::SwitchMergeResolver", "util", ov::pass::ModelPass); SwitchMergeResolver() = default; bool run_on_model(const std::shared_ptr& m) override; diff --git a/src/frontends/tensorflow/src/transformations/uninitialized_variable_resolve.hpp b/src/frontends/tensorflow/src/transformations/uninitialized_variable_resolve.hpp index 5e0f8bd6dfdec0..30aadee2776b9e 100644 --- a/src/frontends/tensorflow/src/transformations/uninitialized_variable_resolve.hpp +++ b/src/frontends/tensorflow/src/transformations/uninitialized_variable_resolve.hpp @@ -19,7 +19,7 @@ namespace pass { // it borrows value of Variable that was used for some state (or node) in a graph class UninitializedVariableResolver : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::tensorflow::pass::UninitializedVariableResolver"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::tensorflow::pass::UninitializedVariableResolver"); UninitializedVariableResolver(); }; diff --git a/src/frontends/tensorflow_common/include/helper_transforms/const_to_result_remover.hpp b/src/frontends/tensorflow_common/include/helper_transforms/const_to_result_remover.hpp index fc4d1c36fac3af..a80c25ab1b5e75 100644 --- a/src/frontends/tensorflow_common/include/helper_transforms/const_to_result_remover.hpp +++ b/src/frontends/tensorflow_common/include/helper_transforms/const_to_result_remover.hpp @@ -17,7 +17,7 @@ namespace pass { // We need to remove them because separate sub-graphs can solidly affect performance class ConstToResultRemover : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ov::frontend::tensorflow::pass::UnsupportedConstToResultRemover"); + OPENVINO_RTTI("ov::frontend::tensorflow::pass::UnsupportedConstToResultRemover", "util", ov::pass::ModelPass); ConstToResultRemover() {} bool run_on_model(const std::shared_ptr& m) override; diff --git a/src/frontends/tensorflow_common/include/helper_transforms/embedding_segments_feature_fusing.hpp b/src/frontends/tensorflow_common/include/helper_transforms/embedding_segments_feature_fusing.hpp index ec2ce348cb5a1b..696242f321e733 100644 --- a/src/frontends/tensorflow_common/include/helper_transforms/embedding_segments_feature_fusing.hpp +++ b/src/frontends/tensorflow_common/include/helper_transforms/embedding_segments_feature_fusing.hpp @@ -20,7 +20,7 @@ namespace pass { // Such sub-graph is met in the Wide and Deep model in case of the SINGLE categorical feature. class EmbeddingSegmentSingleFeatureFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::tensorflow::pass::EmbeddingSegmentSingleFeatureFusion"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::tensorflow::pass::EmbeddingSegmentSingleFeatureFusion"); EmbeddingSegmentSingleFeatureFusion(); }; diff --git a/src/frontends/tensorflow_common/include/helper_transforms/saved_model_unused_remover.hpp b/src/frontends/tensorflow_common/include/helper_transforms/saved_model_unused_remover.hpp index c7d457d8d6a361..80c80695595f08 100644 --- a/src/frontends/tensorflow_common/include/helper_transforms/saved_model_unused_remover.hpp +++ b/src/frontends/tensorflow_common/include/helper_transforms/saved_model_unused_remover.hpp @@ -15,7 +15,7 @@ namespace pass { // Results marked as unused by Saved Model settings class SavedModelUnusedRemover : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ov::frontend::tensorflow::pass::SavedModelUnusedRemover"); + OPENVINO_RTTI("ov::frontend::tensorflow::pass::SavedModelUnusedRemover", "util", ov::pass::ModelPass); SavedModelUnusedRemover() {} bool run_on_model(const std::shared_ptr& m) override; diff --git a/src/frontends/tensorflow_common/include/helper_transforms/tensor_array_v3_replacer.hpp b/src/frontends/tensorflow_common/include/helper_transforms/tensor_array_v3_replacer.hpp index ad442e3e5dbe29..e0f7c20c11c9b9 100644 --- a/src/frontends/tensorflow_common/include/helper_transforms/tensor_array_v3_replacer.hpp +++ b/src/frontends/tensorflow_common/include/helper_transforms/tensor_array_v3_replacer.hpp @@ -19,7 +19,7 @@ namespace pass { // that simulates initial state of tensor array container class TensorArrayV3Replacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::tensorflow::pass::TensorArrayV3Replacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::tensorflow::pass::TensorArrayV3Replacer"); TensorArrayV3Replacer(); }; diff --git a/src/frontends/tensorflow_common/include/helper_transforms/tensor_list_ops_resolver.hpp b/src/frontends/tensorflow_common/include/helper_transforms/tensor_list_ops_resolver.hpp index 764b7dfc472d2a..cb587d7f665c7b 100644 --- a/src/frontends/tensorflow_common/include/helper_transforms/tensor_list_ops_resolver.hpp +++ b/src/frontends/tensorflow_common/include/helper_transforms/tensor_list_ops_resolver.hpp @@ -15,14 +15,14 @@ namespace pass { // Replace internal operation TensorListReserve with a sub-graph producing initial container class TensorListReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::tensorflow::pass::TensorListReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::tensorflow::pass::TensorListReplacer"); TensorListReplacer(); }; // Replace internal operation TensorListSetItem with a sub-graph that inserts a new tensor into container class TensorListSetItemReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::tensorflow::pass::TensorListSetItemReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::tensorflow::pass::TensorListSetItemReplacer"); TensorListSetItemReplacer(); }; @@ -30,14 +30,14 @@ class TensorListSetItemReplacer : public ov::pass::MatcherPass { // that inserts a new tensor into the tail of the container class TensorListPushBackReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::tensorflow::pass::TensorListPushBackReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::tensorflow::pass::TensorListPushBackReplacer"); TensorListPushBackReplacer(); }; // Replace internal operation TensorListGetItem with a sub-graph that gets a tensor from container by index class TensorListGetItemReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::tensorflow::pass::TensorListGetItemReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::tensorflow::pass::TensorListGetItemReplacer"); TensorListGetItemReplacer(); }; @@ -45,7 +45,7 @@ class TensorListGetItemReplacer : public ov::pass::MatcherPass { // Replace TensorListSetItem and TensorListGetItem with ConcatOutput and SlicedInput class TensorListInLoopOptimization : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::tensorflow::pass::TensorListInLoopOptimization"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::tensorflow::pass::TensorListInLoopOptimization"); TensorListInLoopOptimization(); }; diff --git a/src/frontends/tensorflow_lite/include/openvino/frontend/tensorflow_lite/sparsity_info.hpp b/src/frontends/tensorflow_lite/include/openvino/frontend/tensorflow_lite/sparsity_info.hpp index c1ab8d4fd04941..6430664eba66ff 100644 --- a/src/frontends/tensorflow_lite/include/openvino/frontend/tensorflow_lite/sparsity_info.hpp +++ b/src/frontends/tensorflow_lite/include/openvino/frontend/tensorflow_lite/sparsity_info.hpp @@ -25,7 +25,7 @@ class TENSORFLOW_LITE_API SparsityInfo : public ov::RuntimeAttribute { const void* indices; }; - OPENVINO_RTTI("SparsityInfo"); + OPENVINO_RTTI("SparsityInfo", "0", ov::RuntimeAttribute); SparsityInfo() = default; explicit SparsityInfo(const std::vector& shape, const std::vector& traversal_order, diff --git a/src/frontends/tensorflow_lite/src/tflite_transformations/rfft2d_complex_abs.h b/src/frontends/tensorflow_lite/src/tflite_transformations/rfft2d_complex_abs.h index f8599e2c7791a3..11e79cfe09a58c 100644 --- a/src/frontends/tensorflow_lite/src/tflite_transformations/rfft2d_complex_abs.h +++ b/src/frontends/tensorflow_lite/src/tflite_transformations/rfft2d_complex_abs.h @@ -24,7 +24,7 @@ namespace pass { // \-(imag)-> Unsqueeze -> Reshape -> Square / class Rfft2dSimplifier : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::tensorflow_lite::pass::Rfft2dSimplifier"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::tensorflow_lite::pass::Rfft2dSimplifier"); Rfft2dSimplifier(); }; diff --git a/src/frontends/tensorflow_lite/src/tflite_transformations/tflite_quantize_resolver.hpp b/src/frontends/tensorflow_lite/src/tflite_transformations/tflite_quantize_resolver.hpp index 45fd3e70722d54..657e8e49010086 100644 --- a/src/frontends/tensorflow_lite/src/tflite_transformations/tflite_quantize_resolver.hpp +++ b/src/frontends/tensorflow_lite/src/tflite_transformations/tflite_quantize_resolver.hpp @@ -18,21 +18,21 @@ namespace pass { // Fuses Convert into TFLQuantize operation class TFLQuantizeConvert : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::tensorflow_lite::pass::TFLQuantizeConvert"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::tensorflow_lite::pass::TFLQuantizeConvert"); TFLQuantizeConvert(); }; // Replaces TFLQuantize operation with FQ or sub-mul pattern if necessary class TFLQuantizeReplacer : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::frontend::tensorflow_lite::pass::TFLQuantizeReplacer"); + OPENVINO_MATCHER_PASS_RTTI("ov::frontend::tensorflow_lite::pass::TFLQuantizeReplacer"); TFLQuantizeReplacer(); }; // This transformation simplifies type manipulations in the graph class TFLQuantizeResolver : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ov::frontend::tensorflow_lite::pass::TFLQuantizeResolver"); + OPENVINO_RTTI("ov::frontend::tensorflow_lite::pass::TFLQuantizeResolver", "util", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; diff --git a/src/plugins/intel_cpu/src/emitters/snippets/x64/cpu_generator.cpp b/src/plugins/intel_cpu/src/emitters/snippets/x64/cpu_generator.cpp index 39e384837856a1..c2f930c279f66a 100644 --- a/src/plugins/intel_cpu/src/emitters/snippets/x64/cpu_generator.cpp +++ b/src/plugins/intel_cpu/src/emitters/snippets/x64/cpu_generator.cpp @@ -392,7 +392,7 @@ ov::snippets::RegType intel_cpu::CPUGenerator::get_specific_op_out_reg_type(cons if (std::dynamic_pointer_cast(op) || #ifdef SNIPPETS_LIBXSMM_TPP std::dynamic_pointer_cast(op) || - std::dynamic_pointer_cast(op) || + ov::as_type_ptr(op) || #endif std::dynamic_pointer_cast(op)) return ov::snippets::RegType::gpr; diff --git a/src/plugins/intel_cpu/src/nodes/adaptive_pooling.cpp b/src/plugins/intel_cpu/src/nodes/adaptive_pooling.cpp index f4af11b0f2362a..110c017bd956b1 100644 --- a/src/plugins/intel_cpu/src/nodes/adaptive_pooling.cpp +++ b/src/plugins/intel_cpu/src/nodes/adaptive_pooling.cpp @@ -30,13 +30,13 @@ bool AdaptivePooling::isSupportedOperation(const std::shared_ptr std::string& errorMessage) noexcept { try { if (one_of(op->get_type_info(), ov::op::v8::AdaptiveAvgPool::get_type_info_static())) { - auto adaPool = std::dynamic_pointer_cast(op); + auto adaPool = ov::as_type_ptr(op); if (!adaPool) { errorMessage = "Only opset8 AdaptiveAvgPooling operation is supported"; return false; } } else if (one_of(op->get_type_info(), ov::op::v8::AdaptiveMaxPool::get_type_info_static())) { - auto adaPool = std::dynamic_pointer_cast(op); + auto adaPool = ov::as_type_ptr(op); if (!adaPool) { errorMessage = "Only opset8 AdaptiveMaxPooling operation is supported"; return false; diff --git a/src/plugins/intel_cpu/src/nodes/bin_conv.cpp b/src/plugins/intel_cpu/src/nodes/bin_conv.cpp index 336a370374a9f9..2676aea341634b 100644 --- a/src/plugins/intel_cpu/src/nodes/bin_conv.cpp +++ b/src/plugins/intel_cpu/src/nodes/bin_conv.cpp @@ -920,7 +920,7 @@ bool BinaryConvolution::isSupportedOperation(const std::shared_ptr(op); + const auto binConv = ov::as_type_ptr(op); if (!binConv) { errorMessage = "Only opset1 BinaryConvolution operation is supported"; return false; @@ -940,7 +940,7 @@ BinaryConvolution::BinaryConvolution(const std::shared_ptr& op, const std::string errorMessage; if (isSupportedOperation(op, errorMessage)) { errorPrefix = "BinaryConvolution node with name '" + getName() + "' "; - const auto binConv = std::dynamic_pointer_cast(op); + const auto binConv = ov::as_type_ptr(op); pad_value = binConv->get_pad_value(); for (size_t i = 0; i < binConv->get_strides().size(); i++) { diff --git a/src/plugins/intel_cpu/src/nodes/bucketize.cpp b/src/plugins/intel_cpu/src/nodes/bucketize.cpp index cfa4bb031501ef..239c277f05fa14 100644 --- a/src/plugins/intel_cpu/src/nodes/bucketize.cpp +++ b/src/plugins/intel_cpu/src/nodes/bucketize.cpp @@ -18,7 +18,7 @@ namespace node { bool Bucketize::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - const auto bucketsize = std::dynamic_pointer_cast(op); + const auto bucketsize = ov::as_type_ptr(op); if (!bucketsize) { errorMessage = "Only opset3 Bucketize operation is supported"; return false; @@ -37,7 +37,7 @@ Bucketize::Bucketize(const std::shared_ptr& op, const GraphContext::CP } errorPrefix = "Bucketize layer with name '" + op->get_friendly_name() + "' "; - const auto bucketsize = std::dynamic_pointer_cast(op); + const auto bucketsize = ov::as_type_ptr(op); if (bucketsize == nullptr) OPENVINO_THROW("Operation with name '", op->get_friendly_name(), diff --git a/src/plugins/intel_cpu/src/nodes/convert.cpp b/src/plugins/intel_cpu/src/nodes/convert.cpp index d01a56aac1b86d..84b1004ea081e3 100644 --- a/src/plugins/intel_cpu/src/nodes/convert.cpp +++ b/src/plugins/intel_cpu/src/nodes/convert.cpp @@ -17,7 +17,7 @@ namespace node { bool Convert::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - const auto convert = std::dynamic_pointer_cast(op); + const auto convert = ov::as_type_ptr(op); if (!convert) { errorMessage = "Only opset1 Convert operation is supported"; return false; diff --git a/src/plugins/intel_cpu/src/nodes/cum_sum.cpp b/src/plugins/intel_cpu/src/nodes/cum_sum.cpp index 43e69e29916430..b6829873a5101f 100644 --- a/src/plugins/intel_cpu/src/nodes/cum_sum.cpp +++ b/src/plugins/intel_cpu/src/nodes/cum_sum.cpp @@ -19,7 +19,7 @@ namespace node { bool CumSum::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - const auto cumsum = std::dynamic_pointer_cast(op); + const auto cumsum = ov::as_type_ptr(op); if (!cumsum) { errorMessage = "Only opset3 CumSum operation is supported"; return false; @@ -49,7 +49,7 @@ CumSum::CumSum(const std::shared_ptr& op, const GraphContext::CPtr con OPENVINO_THROW(errorPrefix, " doesn't support 'data' input tensor with rank: ", numOfDims); } - const auto cumsum = std::dynamic_pointer_cast(op); + const auto cumsum = ov::as_type_ptr(op); if (cumsum == nullptr) OPENVINO_THROW("Operation with name '", op->get_friendly_name(), "' is not an instance of CumSum from opset3."); diff --git a/src/plugins/intel_cpu/src/nodes/experimental_detectron_priorgridgenerator.cpp b/src/plugins/intel_cpu/src/nodes/experimental_detectron_priorgridgenerator.cpp index f7df0e533778ed..58eae1d695f669 100644 --- a/src/plugins/intel_cpu/src/nodes/experimental_detectron_priorgridgenerator.cpp +++ b/src/plugins/intel_cpu/src/nodes/experimental_detectron_priorgridgenerator.cpp @@ -16,8 +16,7 @@ namespace node { bool ExperimentalDetectronPriorGridGenerator::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - const auto priorGridGen = - std::dynamic_pointer_cast(op); + const auto priorGridGen = ov::as_type_ptr(op); if (!priorGridGen) { errorMessage = "Only opset6 ExperimentalDetectronPriorGridGenerator operation is supported"; return false; @@ -37,7 +36,7 @@ ExperimentalDetectronPriorGridGenerator::ExperimentalDetectronPriorGridGenerator } errorPrefix = "ExperimentalDetectronPriorGridGenerator layer with name '" + op->get_friendly_name() + "'"; - const auto priorGridGen = std::dynamic_pointer_cast(op); + const auto priorGridGen = ov::as_type_ptr(op); if (getOriginalInputsNumber() != 3 || getOriginalOutputsNumber() != 1) OPENVINO_THROW(errorPrefix, " has incorrect number of input/output edges!"); diff --git a/src/plugins/intel_cpu/src/nodes/experimental_detectron_roifeatureextractor.cpp b/src/plugins/intel_cpu/src/nodes/experimental_detectron_roifeatureextractor.cpp index 05f2202537f986..8f87b2e7ec7b6a 100644 --- a/src/plugins/intel_cpu/src/nodes/experimental_detectron_roifeatureextractor.cpp +++ b/src/plugins/intel_cpu/src/nodes/experimental_detectron_roifeatureextractor.cpp @@ -271,7 +271,7 @@ bool ExperimentalDetectronROIFeatureExtractor::isSupportedOperation(const std::s std::string& errorMessage) noexcept { try { const auto roiFeatureExtractor = - std::dynamic_pointer_cast(op); + ov::as_type_ptr(op); if (!roiFeatureExtractor) { errorMessage = "Only opset6 ExperimentalDetectronROIFeatureExtractor operation is supported"; return false; @@ -290,8 +290,7 @@ ExperimentalDetectronROIFeatureExtractor::ExperimentalDetectronROIFeatureExtract OPENVINO_THROW_NOT_IMPLEMENTED(errorMessage); } - const auto roiFeatureExtractor = - std::dynamic_pointer_cast(op); + const auto roiFeatureExtractor = ov::as_type_ptr(op); const auto& attr = roiFeatureExtractor->get_attrs(); output_dim_ = attr.output_size; pyramid_scales_ = attr.pyramid_scales; diff --git a/src/plugins/intel_cpu/src/nodes/fake_quantize.cpp b/src/plugins/intel_cpu/src/nodes/fake_quantize.cpp index 9951c5176f0ad1..6fc8f5b78a1ea6 100644 --- a/src/plugins/intel_cpu/src/nodes/fake_quantize.cpp +++ b/src/plugins/intel_cpu/src/nodes/fake_quantize.cpp @@ -961,7 +961,7 @@ struct jit_uni_quantization_kernel : public jit_uni_quantize_kernel, public jit_ #endif bool FakeQuantize::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - const auto fq = std::dynamic_pointer_cast(op); + const auto fq = ov::as_type_ptr(op); if (!fq) { errorMessage = "Only opset1 FakeQuantize operation is supported"; return false; @@ -979,7 +979,7 @@ bool FakeQuantize::isSupportedOperation(const std::shared_ptr& o } } for (size_t i = 1; i < fq->get_input_size(); i++) { - if (!std::dynamic_pointer_cast(fq->get_input_node_shared_ptr(i))) { + if (!ov::as_type_ptr(fq->get_input_node_shared_ptr(i))) { errorMessage = "Has non const 'range' input on " + std::to_string(i) + " port"; return false; } @@ -1061,7 +1061,7 @@ FakeQuantize::FakeQuantize(const std::shared_ptr& op, const GraphConte std::string errorMessage; if (isSupportedOperation(op, errorMessage)) { algorithm = Algorithm::FQCommon; - const auto fq = std::dynamic_pointer_cast(op); + const auto fq = ov::as_type_ptr(op); errorPrefix = "FakeQuantize node with name '" + getName() + "' "; levels = fq->get_levels(); @@ -1129,20 +1129,16 @@ FakeQuantize::FakeQuantize(const std::shared_ptr& op, const GraphConte OPENVINO_THROW(errorPrefix, "has different quantization axis size on 'data' and 'range' inputs"); } - const auto inputLowNode = - std::dynamic_pointer_cast(fq->get_input_node_shared_ptr(1)); + const auto inputLowNode = ov::as_type_ptr(fq->get_input_node_shared_ptr(1)); auto inputLowData = inputLowNode->cast_vector(); - const auto inputHighNode = - std::dynamic_pointer_cast(fq->get_input_node_shared_ptr(2)); + const auto inputHighNode = ov::as_type_ptr(fq->get_input_node_shared_ptr(2)); auto inputHighData = inputHighNode->cast_vector(); - const auto outputLowNode = - std::dynamic_pointer_cast(fq->get_input_node_shared_ptr(3)); + const auto outputLowNode = ov::as_type_ptr(fq->get_input_node_shared_ptr(3)); auto outputLowData = outputLowNode->cast_vector(); - const auto outputHighNode = - std::dynamic_pointer_cast(fq->get_input_node_shared_ptr(4)); + const auto outputHighNode = ov::as_type_ptr(fq->get_input_node_shared_ptr(4)); auto outputHighData = outputHighNode->cast_vector(); binarization = levels == 2; diff --git a/src/plugins/intel_cpu/src/nodes/grn.cpp b/src/plugins/intel_cpu/src/nodes/grn.cpp index 374452812eaf3a..ce646be8ad6516 100644 --- a/src/plugins/intel_cpu/src/nodes/grn.cpp +++ b/src/plugins/intel_cpu/src/nodes/grn.cpp @@ -15,7 +15,7 @@ namespace node { bool GRN::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - const auto grn = std::dynamic_pointer_cast(op); + const auto grn = ov::as_type_ptr(op); if (!grn) { errorMessage = "Only opset1 GRN operation is supported"; return false; @@ -34,7 +34,7 @@ GRN::GRN(const std::shared_ptr& op, const GraphContext::CPtr context) } errorPrefix = "GRN layer with name '" + op->get_friendly_name() + "'"; - const auto grn = std::dynamic_pointer_cast(op); + const auto grn = ov::as_type_ptr(op); if (grn == nullptr) OPENVINO_THROW("Operation with name '", op->get_friendly_name(), "' is not an instance of GRN from opset1."); diff --git a/src/plugins/intel_cpu/src/nodes/interpolate.cpp b/src/plugins/intel_cpu/src/nodes/interpolate.cpp index beb53cb89a831e..7cd09710070c31 100644 --- a/src/plugins/intel_cpu/src/nodes/interpolate.cpp +++ b/src/plugins/intel_cpu/src/nodes/interpolate.cpp @@ -1877,7 +1877,7 @@ Interpolate::Interpolate(const std::shared_ptr& op, const GraphContext if (isSupportedOperation(op, errorMessage)) { errorPrefix = "Interpolate node with name '" + getName() + "'"; dataRank = getInputShapeAtPort(DATA_ID).getRank(); - if (const auto interp = std::dynamic_pointer_cast(op)) { + if (const auto interp = ov::as_type_ptr(op)) { is_version11 = false; const auto numInputs = inputShapes.size(); if (numInputs != 3 && numInputs != 4) diff --git a/src/plugins/intel_cpu/src/nodes/log_softmax.cpp b/src/plugins/intel_cpu/src/nodes/log_softmax.cpp index fc93daa2715812..8406b1c000318b 100644 --- a/src/plugins/intel_cpu/src/nodes/log_softmax.cpp +++ b/src/plugins/intel_cpu/src/nodes/log_softmax.cpp @@ -15,7 +15,7 @@ namespace node { bool LogSoftmax::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - const auto logSoftMax = std::dynamic_pointer_cast(op); + const auto logSoftMax = ov::as_type_ptr(op); if (!logSoftMax) { errorMessage = "Only opset5 LogSoftmax operation is supported"; return false; @@ -34,7 +34,7 @@ LogSoftmax::LogSoftmax(const std::shared_ptr& op, const GraphContext:: } errorPrefix = "LogSoftmax layer with name '" + op->get_friendly_name() + "'"; - const auto logSoftMax = std::dynamic_pointer_cast(op); + const auto logSoftMax = ov::as_type_ptr(op); if (logSoftMax == nullptr) OPENVINO_THROW("Operation with name '", op->get_friendly_name(), diff --git a/src/plugins/intel_cpu/src/nodes/matmul.cpp b/src/plugins/intel_cpu/src/nodes/matmul.cpp index fa7abd7685df09..e8415a1408fa0e 100644 --- a/src/plugins/intel_cpu/src/nodes/matmul.cpp +++ b/src/plugins/intel_cpu/src/nodes/matmul.cpp @@ -86,7 +86,7 @@ bool MatMul::canBeExecutedInInt8() const { bool MatMul::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - const auto matMul = std::dynamic_pointer_cast(op); + const auto matMul = ov::as_type_ptr(op); if (!matMul) { errorMessage = "Only opset1 MatMul operation is supported"; return false; @@ -121,7 +121,7 @@ MatMul::MatMul(const std::shared_ptr& op, const GraphContext::CPtr con if (!isSupportedOperation(op, errorMessage)) OPENVINO_THROW_NOT_IMPLEMENTED(errorMessage); - const auto matMul = std::dynamic_pointer_cast(op); + const auto matMul = ov::as_type_ptr(op); if (!matMul) { OPENVINO_THROW_NOT_IMPLEMENTED("Operation with name ", diff --git a/src/plugins/intel_cpu/src/nodes/one_hot.cpp b/src/plugins/intel_cpu/src/nodes/one_hot.cpp index 2b3e0fc36cdcaf..a4ce1d1077625c 100644 --- a/src/plugins/intel_cpu/src/nodes/one_hot.cpp +++ b/src/plugins/intel_cpu/src/nodes/one_hot.cpp @@ -21,18 +21,17 @@ namespace node { bool OneHot::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - const auto oneHot = std::dynamic_pointer_cast(op); + const auto oneHot = ov::as_type_ptr(op); if (!oneHot) { errorMessage = "Only opset1 OneHot operation is supported"; return false; } - if (std::dynamic_pointer_cast(oneHot->get_input_node_shared_ptr(ON_VALUE_ID)) == - nullptr) { + if (ov::as_type_ptr(oneHot->get_input_node_shared_ptr(ON_VALUE_ID)) == nullptr) { errorMessage = "Only const 'on_value' input is supported"; return false; } - if (std::dynamic_pointer_cast( - oneHot->get_input_node_shared_ptr(OFF_VALUEAXES_ID)) == nullptr) { + if (ov::as_type_ptr(oneHot->get_input_node_shared_ptr(OFF_VALUEAXES_ID)) == + nullptr) { errorMessage = "Only const 'off_value' input is supported"; return false; } @@ -50,9 +49,8 @@ OneHot::OneHot(const std::shared_ptr& op, const GraphContext::CPtr con } errorPrefix = "OneHot layer with name '" + op->get_friendly_name() + "'"; - const auto oneHot = std::dynamic_pointer_cast(op); - const auto depthNode = - std::dynamic_pointer_cast(oneHot->get_input_node_shared_ptr(DEPTH_ID)); + const auto oneHot = ov::as_type_ptr(op); + const auto depthNode = ov::as_type_ptr(oneHot->get_input_node_shared_ptr(DEPTH_ID)); if (depthNode) { depth = depthNode->cast_vector()[0]; } diff --git a/src/plugins/intel_cpu/src/nodes/priorbox.cpp b/src/plugins/intel_cpu/src/nodes/priorbox.cpp index 1e7fcc0bd385d2..bc027b8cc5d46c 100644 --- a/src/plugins/intel_cpu/src/nodes/priorbox.cpp +++ b/src/plugins/intel_cpu/src/nodes/priorbox.cpp @@ -32,7 +32,7 @@ float clip_less(float x, float threshold) { bool PriorBox::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - const auto priorBox = std::dynamic_pointer_cast(op); + const auto priorBox = ov::as_type_ptr(op); if (!priorBox) { errorMessage = "Only opset1 PriorBox operation is supported"; return false; @@ -50,7 +50,7 @@ PriorBox::PriorBox(const std::shared_ptr& op, const GraphContext::CPtr OPENVINO_THROW_NOT_IMPLEMENTED(errorMessage); } - const auto priorBox = std::dynamic_pointer_cast(op); + const auto priorBox = ov::as_type_ptr(op); const ov::opset1::PriorBox::Attributes& attrs = priorBox->get_attrs(); offset = attrs.offset; step = attrs.step; diff --git a/src/plugins/intel_cpu/src/nodes/priorbox_clustered.cpp b/src/plugins/intel_cpu/src/nodes/priorbox_clustered.cpp index 360fdb50ee98b7..cf3d22973c6683 100644 --- a/src/plugins/intel_cpu/src/nodes/priorbox_clustered.cpp +++ b/src/plugins/intel_cpu/src/nodes/priorbox_clustered.cpp @@ -20,7 +20,7 @@ namespace node { bool PriorBoxClustered::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - const auto priorBox = std::dynamic_pointer_cast(op); + const auto priorBox = ov::as_type_ptr(op); if (!priorBox) { errorMessage = "Only opset1 PriorBoxClustered operation is supported"; return false; @@ -38,7 +38,7 @@ PriorBoxClustered::PriorBoxClustered(const std::shared_ptr& op, const OPENVINO_THROW_NOT_IMPLEMENTED(errorMessage); } - const auto priorBox = std::dynamic_pointer_cast(op); + const auto priorBox = ov::as_type_ptr(op); const ov::opset1::PriorBoxClustered::Attributes& attrs = priorBox->get_attrs(); widths = attrs.widths; diff --git a/src/plugins/intel_cpu/src/nodes/psroi_pooling.cpp b/src/plugins/intel_cpu/src/nodes/psroi_pooling.cpp index ddd04f0184506c..ffcd06e4531c9c 100644 --- a/src/plugins/intel_cpu/src/nodes/psroi_pooling.cpp +++ b/src/plugins/intel_cpu/src/nodes/psroi_pooling.cpp @@ -32,8 +32,8 @@ bool PSROIPooling::isSupportedOperation(const std::shared_ptr& o errorMessage = "Doesn't support op with dynamic shapes"; return false; } - const auto psroi = std::dynamic_pointer_cast(op); - const auto defPsroi = std::dynamic_pointer_cast(op); + const auto psroi = ov::as_type_ptr(op); + const auto defPsroi = ov::as_type_ptr(op); if (!psroi && !defPsroi) { errorMessage = "Only opset1 PSROIPooling and DeformablePSROIPooling operations are supported"; return false; @@ -68,8 +68,8 @@ PSROIPooling::PSROIPooling(const std::shared_ptr& op, const GraphConte errorPrefix = std::string(op->get_type_name()) + " node with name '" + op->get_friendly_name() + "'"; - const auto psroi = std::dynamic_pointer_cast(op); - const auto defPsroi = std::dynamic_pointer_cast(op); + const auto psroi = ov::as_type_ptr(op); + const auto defPsroi = ov::as_type_ptr(op); noTrans = op->get_input_size() == 2; if (op->get_input_shape(0).size() != 4) diff --git a/src/plugins/intel_cpu/src/nodes/reduce.cpp b/src/plugins/intel_cpu/src/nodes/reduce.cpp index 7828e11f9d413a..91bb090d1f5ed0 100644 --- a/src/plugins/intel_cpu/src/nodes/reduce.cpp +++ b/src/plugins/intel_cpu/src/nodes/reduce.cpp @@ -1921,16 +1921,16 @@ bool Reduce::isSupportedOperation(const std::shared_ptr& op, std return false; } if (const auto reduce = std::dynamic_pointer_cast(op)) { - auto reduceConst = std::dynamic_pointer_cast( - reduce->get_input_node_shared_ptr(REDUCE_INDEXES)); + auto reduceConst = + ov::as_type_ptr(reduce->get_input_node_shared_ptr(REDUCE_INDEXES)); if (!reduceConst) { errorMessage = "Second tensor is not constant"; return false; } } if (const auto reduce = std::dynamic_pointer_cast(op)) { - auto reduceConst = std::dynamic_pointer_cast( - reduce->get_input_node_shared_ptr(REDUCE_INDEXES)); + auto reduceConst = + ov::as_type_ptr(reduce->get_input_node_shared_ptr(REDUCE_INDEXES)); if (!reduceConst) { errorMessage = "Second tensor is not constant"; return false; @@ -1940,7 +1940,7 @@ bool Reduce::isSupportedOperation(const std::shared_ptr& op, std errorMessage = "Doesn't support Reduce algorithm: " + std::string(op->get_type_info().name); return false; } - if (std::dynamic_pointer_cast(op->get_input_node_shared_ptr(REDUCE_INDEXES)) == nullptr) { + if (ov::as_type_ptr(op->get_input_node_shared_ptr(REDUCE_INDEXES)) == nullptr) { errorMessage = "Only const 'reduce_indexes' input is supported"; return false; } @@ -1958,15 +1958,15 @@ Reduce::Reduce(const std::shared_ptr& op, const GraphContext::CPtr con getInitializers().at(op->get_type_info())(op, *this); if (const auto reduce = std::dynamic_pointer_cast(op)) { keep_dims = reduce->get_keep_dims(); - auto reduceConst = std::dynamic_pointer_cast( - reduce->get_input_node_shared_ptr(REDUCE_INDEXES)); + auto reduceConst = + ov::as_type_ptr(reduce->get_input_node_shared_ptr(REDUCE_INDEXES)); if (!reduceConst) OPENVINO_THROW(errorPrefix, " second tensor is not constant!"); raw_axes = reduceConst->cast_vector(); } else if (const auto reduce = std::dynamic_pointer_cast(op)) { keep_dims = reduce->get_keep_dims(); - auto reduceConst = std::dynamic_pointer_cast( - reduce->get_input_node_shared_ptr(REDUCE_INDEXES)); + auto reduceConst = + ov::as_type_ptr(reduce->get_input_node_shared_ptr(REDUCE_INDEXES)); if (!reduceConst) OPENVINO_THROW(errorPrefix, " second tensor is not constant!"); raw_axes = reduceConst->cast_vector(); diff --git a/src/plugins/intel_cpu/src/nodes/region_yolo.cpp b/src/plugins/intel_cpu/src/nodes/region_yolo.cpp index b7d98064713fd0..974986ef63c254 100644 --- a/src/plugins/intel_cpu/src/nodes/region_yolo.cpp +++ b/src/plugins/intel_cpu/src/nodes/region_yolo.cpp @@ -242,7 +242,7 @@ struct jit_uni_logistic_kernel_f32 : public jit_uni_logistic_kernel, public jit_ bool RegionYolo::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - const auto regionYolo = std::dynamic_pointer_cast(op); + const auto regionYolo = ov::as_type_ptr(op); if (!regionYolo) { errorMessage = "Only opset1 RegionYolo operation is supported"; return false; @@ -268,7 +268,7 @@ RegionYolo::RegionYolo(const std::shared_ptr& op, const GraphContext:: if (op->get_input_size() != 1 || op->get_output_size() != 1) OPENVINO_THROW(errorPrefix, " has incorrect number of input/output edges!"); - const auto regionYolo = std::dynamic_pointer_cast(op); + const auto regionYolo = ov::as_type_ptr(op); classes = regionYolo->get_num_classes(); coords = regionYolo->get_num_coords(); num = regionYolo->get_num_regions(); diff --git a/src/plugins/intel_cpu/src/nodes/reorg_yolo.cpp b/src/plugins/intel_cpu/src/nodes/reorg_yolo.cpp index 54824f6f12a0b4..511357a1cf825b 100644 --- a/src/plugins/intel_cpu/src/nodes/reorg_yolo.cpp +++ b/src/plugins/intel_cpu/src/nodes/reorg_yolo.cpp @@ -15,7 +15,7 @@ namespace node { bool ReorgYolo::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - const auto reorgYolo = std::dynamic_pointer_cast(op); + const auto reorgYolo = ov::as_type_ptr(op); if (!reorgYolo) { errorMessage = "Only opset2 ReorgYolo operation is supported"; return false; @@ -37,7 +37,7 @@ ReorgYolo::ReorgYolo(const std::shared_ptr& op, const GraphContext::CP if (getOriginalInputsNumber() != 1 || getOriginalOutputsNumber() != 1) OPENVINO_THROW(errorPrefix, " has incorrect number of input/output edges!"); - const auto reorgYolo = std::dynamic_pointer_cast(op); + const auto reorgYolo = ov::as_type_ptr(op); const auto strides = reorgYolo->get_strides(); if (strides.empty()) OPENVINO_THROW(errorPrefix, " has empty strides"); diff --git a/src/plugins/intel_cpu/src/nodes/reshape.cpp b/src/plugins/intel_cpu/src/nodes/reshape.cpp index a5ce68c886931d..6bdcee9ed4e8f5 100644 --- a/src/plugins/intel_cpu/src/nodes/reshape.cpp +++ b/src/plugins/intel_cpu/src/nodes/reshape.cpp @@ -19,9 +19,8 @@ namespace node { bool Reshape::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - if (!std::dynamic_pointer_cast(op) && - !std::dynamic_pointer_cast(op) && - !std::dynamic_pointer_cast(op)) { + if (!ov::as_type_ptr(op) && !ov::as_type_ptr(op) && + !ov::as_type_ptr(op)) { errorMessage = "Only opset1 Reshape, Squeeze, Unsqueeze operations are supported"; return false; } @@ -47,13 +46,13 @@ Reshape::Reshape(const std::shared_ptr& op, const GraphContext::CPtr c } }; - if (std::dynamic_pointer_cast(op)) { + if (ov::as_type_ptr(op)) { checkSecondInput(op, "Reshape"); - } else if (std::dynamic_pointer_cast(op)) { + } else if (ov::as_type_ptr(op)) { if (op->get_input_size() == 1) OPENVINO_THROW("CPU plug-in doesn't support Squeeze node with inputs num equal 1"); checkSecondInput(op, "Squeeze"); - } else if (std::dynamic_pointer_cast(op)) { + } else if (ov::as_type_ptr(op)) { checkSecondInput(op, "Unsqueeze"); } else { OPENVINO_THROW("Unsupported operation type via reshape node"); diff --git a/src/plugins/intel_cpu/src/nodes/reverse_sequence.cpp b/src/plugins/intel_cpu/src/nodes/reverse_sequence.cpp index 51fc1868951181..450e0088507daa 100644 --- a/src/plugins/intel_cpu/src/nodes/reverse_sequence.cpp +++ b/src/plugins/intel_cpu/src/nodes/reverse_sequence.cpp @@ -17,7 +17,7 @@ namespace node { bool ReverseSequence::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - const auto revSeq = std::dynamic_pointer_cast(op); + const auto revSeq = ov::as_type_ptr(op); if (!revSeq) { errorMessage = "Only opset1 ReverseSequence operation is supported"; return false; @@ -36,7 +36,7 @@ ReverseSequence::ReverseSequence(const std::shared_ptr& op, const Grap } errorPrefix = "ReverseSequence layer with name '" + op->get_friendly_name() + "'"; - const auto revSeq = std::dynamic_pointer_cast(op); + const auto revSeq = ov::as_type_ptr(op); if (revSeq == nullptr) OPENVINO_THROW("Operation with name '", op->get_friendly_name(), diff --git a/src/plugins/intel_cpu/src/nodes/roll.cpp b/src/plugins/intel_cpu/src/nodes/roll.cpp index 6ab01a4486d018..064f7e4425e1d8 100644 --- a/src/plugins/intel_cpu/src/nodes/roll.cpp +++ b/src/plugins/intel_cpu/src/nodes/roll.cpp @@ -23,7 +23,7 @@ namespace node { bool Roll::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - const auto interp = std::dynamic_pointer_cast(op); + const auto interp = ov::as_type_ptr(op); if (!interp) { errorMessage = "Only opset7 Roll operation is supported"; return false; diff --git a/src/plugins/intel_cpu/src/nodes/softmax.cpp b/src/plugins/intel_cpu/src/nodes/softmax.cpp index 72e6b602bcf9b1..6757442f6831f0 100644 --- a/src/plugins/intel_cpu/src/nodes/softmax.cpp +++ b/src/plugins/intel_cpu/src/nodes/softmax.cpp @@ -58,7 +58,7 @@ bool SoftmaxKey::operator==(const SoftmaxKey& rhs) const { bool SoftMax::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - if (!std::dynamic_pointer_cast(op)) { + if (!ov::as_type_ptr(op)) { errorMessage = "Only opset1 Softmax operation is supported"; return false; } diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_group_conv.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_group_conv.cpp index f63981078616d5..ca8f3bd6e9a309 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_group_conv.cpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_group_conv.cpp @@ -14,7 +14,7 @@ ov::intel_cpu::ConvertGroupConvolution::ConvertGroupConvolution() { ov::matcher_pass_callback callback = [](ov::pass::pattern::Matcher& m) { enum Inputs { Data, Weights }; - auto gconv = std::dynamic_pointer_cast(m.get_match_root()); + auto gconv = ov::as_type_ptr(m.get_match_root()); if (!gconv) { return false; } diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_group_conv.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_group_conv.hpp index 55c1ecde2aae10..3e9540f35f3273 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_group_conv.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_group_conv.hpp @@ -61,7 +61,7 @@ namespace intel_cpu { class ConvertGroupConvolution : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertGroupConvolution", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertGroupConvolution"); ConvertGroupConvolution(); }; } // namespace intel_cpu diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_group_conv1d.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_group_conv1d.cpp index 94771fa57ed2cd..7d81406c9d1f76 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_group_conv1d.cpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_group_conv1d.cpp @@ -13,7 +13,7 @@ template ov::matcher_pass_callback ov::intel_cpu::ConvertConv1DBase::convert_conv1d_to_conv2d() { return [&](ov::pass::pattern::Matcher& m) { - auto conv = std::dynamic_pointer_cast(m.get_match_root()); + auto conv = ov::as_type_ptr(m.get_match_root()); if (!conv) { return false; } diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_group_conv1d.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_group_conv1d.hpp index 5674514eeb8e64..2ebe679318afee 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_group_conv1d.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_group_conv1d.hpp @@ -54,21 +54,21 @@ namespace ov { namespace intel_cpu { class ConvertConv1DBase : public ov::pass::MatcherPass { protected: - OPENVINO_RTTI("ConvertConv1DBase", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertConv1DBase"); template ov::matcher_pass_callback convert_conv1d_to_conv2d(); }; class ConvertConv1D : public ConvertConv1DBase { public: - OPENVINO_RTTI("ConvertConv1D", "0"); + OPENVINO_RTTI("ConvertConv1D", "0", ConvertConv1DBase); ConvertConv1D(); }; class ConvertGroupConv1D : public ConvertConv1DBase { public: - OPENVINO_RTTI("ConvertGroupConv1D", "0"); + OPENVINO_RTTI("ConvertGroupConv1D", "0", ConvertConv1DBase); ConvertGroupConv1D(); }; } // namespace intel_cpu -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_reduce_multi_axis.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_reduce_multi_axis.cpp index 287aad96b14c08..d2d451c3e12e7f 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_reduce_multi_axis.cpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_reduce_multi_axis.cpp @@ -18,7 +18,7 @@ ov::matcher_pass_callback ov::intel_cpu::ConvertReduceMultiAxisBase::convert_red const auto& input0 = reduce->input_value(0); const auto& input1 = reduce->input_value(1); const auto& data_shape0 = input0.get_partial_shape(); - auto reduction_axes = std::dynamic_pointer_cast(input1.get_node_shared_ptr()); + auto reduction_axes = ov::as_type_ptr(input1.get_node_shared_ptr()); if (!reduction_axes) { return false; } diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_reduce_multi_axis.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_reduce_multi_axis.hpp index 8e5fd1e38b605a..3f2b5d6ec7173d 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_reduce_multi_axis.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_reduce_multi_axis.hpp @@ -51,38 +51,38 @@ namespace intel_cpu { class ConvertReduceMultiAxisBase : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertReduceMultiAxisBase", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertReduceMultiAxisBase"); template ov::matcher_pass_callback convert_reduce(); }; class ConvertReduceProd : public ConvertReduceMultiAxisBase { public: - OPENVINO_RTTI("ConvertReduceProd", "0"); + OPENVINO_RTTI("ConvertReduceProd", "0", ConvertReduceMultiAxisBase); ConvertReduceProd(); }; class ConvertReduceMin : public ConvertReduceMultiAxisBase { public: - OPENVINO_RTTI("ConvertReduceMin", "0"); + OPENVINO_RTTI("ConvertReduceMin", "0", ConvertReduceMultiAxisBase); ConvertReduceMin(); }; class ConvertReduceMax : public ConvertReduceMultiAxisBase { public: - OPENVINO_RTTI("ConvertReduceMax", "0"); + OPENVINO_RTTI("ConvertReduceMax", "0", ConvertReduceMultiAxisBase); ConvertReduceMax(); }; class ConvertReduceSum : public ConvertReduceMultiAxisBase { public: - OPENVINO_RTTI("ConvertReduceSum", "0"); + OPENVINO_RTTI("ConvertReduceSum", "0", ConvertReduceMultiAxisBase); ConvertReduceSum(); }; class ConvertReduceMultiAxis : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("ConvertReduceMultiAxis", "0"); + OPENVINO_RTTI("ConvertReduceMultiAxis", "0", ov::pass::GraphRewrite); ConvertReduceMultiAxis() { add_matcher(); add_matcher(); diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_reduce_no_keep_dims.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_reduce_no_keep_dims.hpp index ea4128ea265e42..d498e8c67e6538 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_reduce_no_keep_dims.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/convert_reduce_no_keep_dims.hpp @@ -45,7 +45,7 @@ namespace intel_cpu { class ConvertReduceNoKeepDimsBase : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertReduceNoKeepDims", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertReduceNoKeepDims"); template ov::matcher_pass_callback convert_reduce(); }; @@ -53,13 +53,13 @@ class ConvertReduceNoKeepDimsBase : public ov::pass::MatcherPass { template class ConvertReduction : public ConvertReduceNoKeepDimsBase { public: - OPENVINO_RTTI("ConvertReduction", "0"); + OPENVINO_RTTI("ConvertReduction", "0", ConvertReduceNoKeepDimsBase); ConvertReduction(); }; class ConvertReduceNoKeepDims : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("ConvertReduceNoKeepDims", "0"); + OPENVINO_RTTI("ConvertReduceNoKeepDims", "0", ov::pass::GraphRewrite); ConvertReduceNoKeepDims() { add_matcher>(); add_matcher>(); diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/mish_decomposition.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/mish_decomposition.cpp index 338bb1820fa7f4..b072309fd61f5b 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/mish_decomposition.cpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/mish_decomposition.cpp @@ -10,7 +10,7 @@ ov::intel_cpu::MishDecomposition::MishDecomposition() { auto mish = ov::pass::pattern::wrap_type(); ov::matcher_pass_callback callback = [](ov::pass::pattern::Matcher& m) { - auto mish = std::dynamic_pointer_cast(m.get_match_root()); + auto mish = ov::as_type_ptr(m.get_match_root()); if (!mish) { return false; } diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/mish_decomposition.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/mish_decomposition.hpp index 75b45dca468dc7..07384a8f1e24ca 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/mish_decomposition.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/arm/pass/mish_decomposition.hpp @@ -11,7 +11,7 @@ namespace intel_cpu { class MishDecomposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MishDecomposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("MishDecomposition"); MishDecomposition(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/align_matmul_input_ranks.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/align_matmul_input_ranks.hpp index f9ab862b19f4dd..9b9762ee5e525b 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/align_matmul_input_ranks.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/align_matmul_input_ranks.hpp @@ -19,7 +19,7 @@ namespace intel_cpu { class AlignMatMulInputRanks : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("AlignMatMulInputRanks", "0"); + OPENVINO_MATCHER_PASS_RTTI("AlignMatMulInputRanks"); AlignMatMulInputRanks(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/causal_mask_preprocess_fusion.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/causal_mask_preprocess_fusion.cpp index 5801dbb8ae74a9..551ddf95ba18d1 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/causal_mask_preprocess_fusion.cpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/causal_mask_preprocess_fusion.cpp @@ -24,7 +24,7 @@ using namespace ov::gen_pattern; class CausalMaskPreprocess : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("CausalMaskPreprocess", "0"); + OPENVINO_MATCHER_PASS_RTTI("CausalMaskPreprocess"); CausalMaskPreprocess(); private: @@ -207,8 +207,7 @@ CausalMaskPreprocess::CausalMaskPreprocess() { ov::intel_cpu::CausalMaskPreprocessNode::Config config; config.type = "CausalMaskPreprocess"; - auto triu = - std::dynamic_pointer_cast(pattern_map.find(const_triu)->second.get_node_shared_ptr()); + auto triu = ov::as_type_ptr(pattern_map.find(const_triu)->second.get_node_shared_ptr()); auto triu_shape = triu->get_output_shape(0); if (triu_shape.size() != 4) diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/causal_mask_preprocess_fusion.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/causal_mask_preprocess_fusion.hpp index f9db370aea49bb..eaa44317ee0c47 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/causal_mask_preprocess_fusion.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/causal_mask_preprocess_fusion.hpp @@ -11,9 +11,9 @@ namespace intel_cpu { class CausalMaskPreprocessFusion : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("CausalMaskPreprocessFusion", "0"); + OPENVINO_RTTI("CausalMaskPreprocessFusion", "0", ov::pass::GraphRewrite); CausalMaskPreprocessFusion(); }; } // namespace intel_cpu -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_broadcast_to_tiles.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_broadcast_to_tiles.cpp index bd6a41f3314c99..3ef6db5a9bd483 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_broadcast_to_tiles.cpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_broadcast_to_tiles.cpp @@ -14,7 +14,7 @@ ov::intel_cpu::ConvertBroadcastToTiles::ConvertBroadcastToTiles() { auto broadcast = ov::pass::pattern::wrap_type(); ov::matcher_pass_callback callback = [this](ov::pass::pattern::Matcher& m) { - auto broadcast = std::dynamic_pointer_cast(m.get_match_root()); + auto broadcast = ov::as_type_ptr(m.get_match_root()); if (!broadcast) { return false; } @@ -24,10 +24,8 @@ ov::intel_cpu::ConvertBroadcastToTiles::ConvertBroadcastToTiles() { return false; } - auto shape_node = - std::dynamic_pointer_cast(broadcast->input_value(1).get_node_shared_ptr()); - auto axes_node = - std::dynamic_pointer_cast(broadcast->input_value(2).get_node_shared_ptr()); + auto shape_node = ov::as_type_ptr(broadcast->input_value(1).get_node_shared_ptr()); + auto axes_node = ov::as_type_ptr(broadcast->input_value(2).get_node_shared_ptr()); if (!shape_node || !axes_node) return false; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_broadcast_to_tiles.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_broadcast_to_tiles.hpp index b0b1e5632f908a..e1b3307a13bdc4 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_broadcast_to_tiles.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_broadcast_to_tiles.hpp @@ -11,7 +11,7 @@ namespace intel_cpu { class ConvertBroadcastToTiles : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertBroadcastToTiles", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertBroadcastToTiles"); ConvertBroadcastToTiles(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_fq_rnn_to_quantized_rnn.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_fq_rnn_to_quantized_rnn.hpp index ee3692f2ea4ca6..a51a357197ef26 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_fq_rnn_to_quantized_rnn.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_fq_rnn_to_quantized_rnn.hpp @@ -76,7 +76,7 @@ namespace intel_cpu { class ConvertFqRnnToQuantizedRnn : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertFqRnnToQuantizedRnn", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertFqRnnToQuantizedRnn"); ConvertFqRnnToQuantizedRnn(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_matmul_to_fc.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_matmul_to_fc.hpp index 03366161f8c904..cf628a3497f3a5 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_matmul_to_fc.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_matmul_to_fc.hpp @@ -11,7 +11,7 @@ namespace intel_cpu { class ConvertMatMulToFC : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertMatMulToFC", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertMatMulToFC"); ConvertMatMulToFC(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_tile_to_seq_tiles.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_tile_to_seq_tiles.cpp index 39247665591879..ed1db387cb8e10 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_tile_to_seq_tiles.cpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_tile_to_seq_tiles.cpp @@ -24,7 +24,7 @@ ov::intel_cpu::ConvertTileToSeqTiles::ConvertTileToSeqTiles() { return false; } - auto tiles_node = std::dynamic_pointer_cast(tile->input_value(1).get_node_shared_ptr()); + auto tiles_node = ov::as_type_ptr(tile->input_value(1).get_node_shared_ptr()); if (!tiles_node) return false; @@ -48,7 +48,7 @@ ov::intel_cpu::ConvertTileToSeqTiles::ConvertTileToSeqTiles() { if (num_of_tile_dims == 0) { auto outputs = tile->get_output_target_inputs(0); for (const auto& out : outputs) { - if (std::dynamic_pointer_cast(out.get_node()->shared_from_this())) { + if (ov::as_type_ptr(out.get_node()->shared_from_this())) { return false; } } diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_tile_to_seq_tiles.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_tile_to_seq_tiles.hpp index 5a4928477abec9..3760f2e000aee2 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_tile_to_seq_tiles.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_tile_to_seq_tiles.hpp @@ -11,7 +11,7 @@ namespace intel_cpu { class ConvertTileToSeqTiles : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertTileToSeqTiles", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertTileToSeqTiles"); ConvertTileToSeqTiles(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_leaky_relu.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_leaky_relu.cpp index f064eca3c2f345..96a48be3a92dcf 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_leaky_relu.cpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_leaky_relu.cpp @@ -17,11 +17,11 @@ ov::intel_cpu::ConvertToLeakyRelu::ConvertToLeakyRelu() { auto prelu = ov::pass::pattern::wrap_type({input, slope_constant}); ov::matcher_pass_callback callback = [](ov::pass::pattern::Matcher& m) { - auto prelu = std::dynamic_pointer_cast(m.get_match_root()); + auto prelu = ov::as_type_ptr(m.get_match_root()); if (!prelu) { return false; } - auto slopeNode = std::dynamic_pointer_cast(prelu->get_input_node_shared_ptr(1)); + auto slopeNode = ov::as_type_ptr(prelu->get_input_node_shared_ptr(1)); if (slopeNode != nullptr && ov::shape_size(slopeNode->get_shape()) == 1) { const float slope = slopeNode->cast_vector()[0]; const auto leakyRelu = std::make_shared(prelu->input(0).get_source_output(), diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_leaky_relu.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_leaky_relu.hpp index b09f14de5793c5..40d4ed2907dbba 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_leaky_relu.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_leaky_relu.hpp @@ -11,7 +11,7 @@ namespace intel_cpu { class ConvertToLeakyRelu : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertToLeakyRelu", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertToLeakyRelu"); ConvertToLeakyRelu(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_power_static.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_power_static.cpp index 8d9ab35dca5de3..2b25e4c9cf3f1b 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_power_static.cpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_power_static.cpp @@ -20,8 +20,8 @@ namespace { int getConstPort(const std::shared_ptr& node) { - const auto const1 = std::dynamic_pointer_cast(node->get_input_node_shared_ptr(0)); - const auto const2 = std::dynamic_pointer_cast(node->get_input_node_shared_ptr(1)); + const auto const1 = ov::as_type_ptr(node->get_input_node_shared_ptr(0)); + const auto const2 = ov::as_type_ptr(node->get_input_node_shared_ptr(1)); int constPort = -1; if (const2) { constPort = 1; @@ -63,7 +63,7 @@ bool isConvertableToPowerStatic(const std::shared_ptr& node) auto input_rank = node->get_input_partial_shape(0).rank(); if (input_rank.is_dynamic()) return false; - auto const_node = std::dynamic_pointer_cast(node->get_input_node_shared_ptr(1)); + auto const_node = ov::as_type_ptr(node->get_input_node_shared_ptr(1)); return const_node && input_rank.get_length() >= static_cast(const_node->get_shape().size()) && ov::shape_size(const_node->get_shape()) == 1; @@ -74,7 +74,7 @@ std::shared_ptr convert(const std::shared_ptr& node) { const int constPort = getConstPort(node); const int nonConstPort = 1 - constPort; std::shared_ptr powerNode = - std::dynamic_pointer_cast(node->get_input_node_shared_ptr(constPort)); + ov::as_type_ptr(node->get_input_node_shared_ptr(constPort)); const float value = powerNode->cast_vector()[0]; if (std::is_same::value) { return std::make_shared(node->input(nonConstPort).get_source_output(), @@ -134,19 +134,19 @@ ov::intel_cpu::ConvertToPowerStatic::ConvertToPowerStatic() { auto node = m.get_match_root(); std::shared_ptr toReplace = node; - if (auto power = std::dynamic_pointer_cast(node)) { + if (auto power = ov::as_type_ptr(node)) { if (!isConvertableToPowerStatic(power)) return false; toReplace = convert(power); - } else if (auto add = std::dynamic_pointer_cast(node)) { + } else if (auto add = ov::as_type_ptr(node)) { if (!isConvertableToPowerStatic(add)) return false; toReplace = convert(add); - } else if (auto sub = std::dynamic_pointer_cast(node)) { + } else if (auto sub = ov::as_type_ptr(node)) { if (!isConvertableToPowerStatic(sub)) return false; toReplace = convert(sub); - } else if (auto mult = std::dynamic_pointer_cast(node)) { + } else if (auto mult = ov::as_type_ptr(node)) { if (!isConvertableToPowerStatic(mult)) return false; toReplace = convert(mult); diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_power_static.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_power_static.hpp index d34a4c3667b5aa..3797eb780b3d13 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_power_static.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_power_static.hpp @@ -11,7 +11,7 @@ namespace intel_cpu { class ConvertToPowerStatic : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertToPowerStatic", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertToPowerStatic"); ConvertToPowerStatic(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_swish_cpu.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_swish_cpu.cpp index af1bf8d9551a89..1477bd9a516f08 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_swish_cpu.cpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_swish_cpu.cpp @@ -15,13 +15,13 @@ ov::intel_cpu::ConvertToSwishCPU::ConvertToSwishCPU() { auto swish = ov::pass::pattern::wrap_type(); ov::matcher_pass_callback callback = [](ov::pass::pattern::Matcher& m) { - auto swish = std::dynamic_pointer_cast(m.get_match_root()); + auto swish = ov::as_type_ptr(m.get_match_root()); if (!swish) { return false; } float beta_value = 1.0; if (swish->input_values().size() == 2) { - auto beta = std::dynamic_pointer_cast(swish->get_input_node_shared_ptr(1)); + auto beta = ov::as_type_ptr(swish->get_input_node_shared_ptr(1)); if (!beta || ov::shape_size(swish->get_input_shape(1)) != 1) { return false; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_swish_cpu.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_swish_cpu.hpp index 3fe3569a13e745..3a640410db472b 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_swish_cpu.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/convert_to_swish_cpu.hpp @@ -11,7 +11,7 @@ namespace intel_cpu { class ConvertToSwishCPU : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertToSwishCPU", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertToSwishCPU"); ConvertToSwishCPU(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/decompose_integer_divide.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/decompose_integer_divide.cpp index 6e4eef050449df..feb6aa9eb09da8 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/decompose_integer_divide.cpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/decompose_integer_divide.cpp @@ -13,7 +13,7 @@ DecomposeIntegerDivide::DecomposeIntegerDivide() { register_matcher(std::make_shared(ov::pass::pattern::wrap_type(), "DecomposeIntegerDivide"), [](ov::pass::pattern::Matcher& m) { - auto divide = std::dynamic_pointer_cast(m.get_match_root()); + auto divide = ov::as_type_ptr(m.get_match_root()); if (!divide) { return false; } diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/decompose_integer_divide.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/decompose_integer_divide.hpp index 329febfcd21e92..ac7e2c2e72f68a 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/decompose_integer_divide.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/decompose_integer_divide.hpp @@ -11,7 +11,7 @@ namespace intel_cpu { class DecomposeIntegerDivide : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("DecomposeIntegerDivide", "0"); + OPENVINO_MATCHER_PASS_RTTI("DecomposeIntegerDivide"); DecomposeIntegerDivide(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/decompose_rms_norm.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/decompose_rms_norm.hpp index f11a3afa23d20c..4cc58841a77bb7 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/decompose_rms_norm.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/decompose_rms_norm.hpp @@ -11,7 +11,7 @@ namespace intel_cpu { class DecomposeRMSNorm : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("DecomposeRMSNorm", "0"); + OPENVINO_MATCHER_PASS_RTTI("DecomposeRMSNorm"); DecomposeRMSNorm(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/fc_bias_fusion.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/fc_bias_fusion.hpp index d1e64969fbcf4e..5fadd183dfd694 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/fc_bias_fusion.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/fc_bias_fusion.hpp @@ -11,7 +11,7 @@ namespace intel_cpu { class FullyConnectedBiasFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("FullyConnectedBiasFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("FullyConnectedBiasFusion"); FullyConnectedBiasFusion(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/insert_convert_after_extension.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/insert_convert_after_extension.hpp index 49cfab68bc6911..7c52d3614407fd 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/insert_convert_after_extension.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/insert_convert_after_extension.hpp @@ -14,7 +14,7 @@ namespace pass { class InsertConvertAfterExtension : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("InsertConvertAfterExtension", "0"); + OPENVINO_MATCHER_PASS_RTTI("InsertConvertAfterExtension"); InsertConvertAfterExtension(bool convert_output_precision = true); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/move_fc_reshape_to_weights.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/move_fc_reshape_to_weights.hpp index 0af0469ce0135e..d3869ff7509fae 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/move_fc_reshape_to_weights.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/move_fc_reshape_to_weights.hpp @@ -25,7 +25,7 @@ namespace intel_cpu { */ class MoveFCReshapeToWeights : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MoveFCReshapeToWeights", "0"); + OPENVINO_MATCHER_PASS_RTTI("MoveFCReshapeToWeights"); MoveFCReshapeToWeights(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/ngram_fusion.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/ngram_fusion.hpp index a90487391b32ac..7a3aa4b3432318 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/ngram_fusion.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/ngram_fusion.hpp @@ -11,7 +11,7 @@ namespace intel_cpu { class NgramFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("NgramFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("NgramFusion"); NgramFusion(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/permute_slice_n_interpolation.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/permute_slice_n_interpolation.hpp index bbca2449a473af..369ef8ccab92e3 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/permute_slice_n_interpolation.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/permute_slice_n_interpolation.hpp @@ -14,7 +14,7 @@ namespace intel_cpu { class PermuteSliceAndInterpolation : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("PermuteSliceAndInterpolation", "0"); + OPENVINO_MATCHER_PASS_RTTI("PermuteSliceAndInterpolation"); PermuteSliceAndInterpolation(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/rnn_sequences_optimization.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/rnn_sequences_optimization.hpp index d7bfd28f0db80d..f8897e0ddf12b2 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/rnn_sequences_optimization.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/rnn_sequences_optimization.hpp @@ -11,25 +11,25 @@ namespace intel_cpu { class OptimizeGRUSequenceTransposes : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("OptimizeGRUSequenceTransposes", "0"); + OPENVINO_MATCHER_PASS_RTTI("OptimizeGRUSequenceTransposes"); OptimizeGRUSequenceTransposes(); }; class OptimizeLSTMSequenceTransposes : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("OptimizeLSTMSequenceTransposes", "0"); + OPENVINO_MATCHER_PASS_RTTI("OptimizeLSTMSequenceTransposes"); OptimizeLSTMSequenceTransposes(); }; class OptimizeRNNSequenceTransposes : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("OptimizeRNNSequenceTransposes", "0"); + OPENVINO_MATCHER_PASS_RTTI("OptimizeRNNSequenceTransposes"); OptimizeRNNSequenceTransposes(); }; class OptimizeSequenceTransposes : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("OptimizeSequenceTransposes", "0"); + OPENVINO_RTTI("OptimizeSequenceTransposes", "0", ov::pass::GraphRewrite); OptimizeSequenceTransposes(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/stateful_sdpa_fusion.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/stateful_sdpa_fusion.cpp index 0ec2049d1ccc1c..29476a5f36a824 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/stateful_sdpa_fusion.cpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/stateful_sdpa_fusion.cpp @@ -61,7 +61,7 @@ StatefulSDPAFusion::StatefulSDPAFusion() { auto unsqueeze_kv = makePattern({kv, any_input()}); auto check_one = [](Output output) -> bool { - auto node = std::dynamic_pointer_cast(output.get_node_shared_ptr()); + auto node = ov::as_type_ptr(output.get_node_shared_ptr()); const auto& bcst_arg = node->cast_vector(); return std::all_of(bcst_arg.begin(), bcst_arg.end(), [](float i) { return i == 1.0f; @@ -117,14 +117,14 @@ StatefulSDPAFusion::StatefulSDPAFusion() { auto present_to = out.get_target_inputs(); for (auto& to : present_to) { auto to_node = to.get_node(); - if (auto convert = dynamic_cast(to_node)) { + if (auto convert = ov::as_type(to_node)) { auto cvt_targets = convert->get_output_target_inputs(0); if (cvt_targets.size() == 1) { to_node = cvt_targets.begin()->get_node(); cvt = convert; } } - assign = dynamic_cast(to_node); + assign = ov::as_type(to_node); if (assign) return true; } diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/stateful_sdpa_fusion.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/stateful_sdpa_fusion.hpp index bc000eb0485cd2..96028402aa9f92 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/stateful_sdpa_fusion.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/stateful_sdpa_fusion.hpp @@ -10,7 +10,7 @@ namespace ov { namespace intel_cpu { class StatefulSDPAFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("StatefulSDPAFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("StatefulSDPAFusion"); StatefulSDPAFusion(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/convert_to_interaction.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/convert_to_interaction.hpp index 9fee162128f3ab..d9ed8e298d18fe 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/convert_to_interaction.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/convert_to_interaction.hpp @@ -11,19 +11,19 @@ namespace intel_cpu { class ConvertToInteraction : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertToInteraction", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertToInteraction"); ConvertToInteraction(); }; class FuseFQtoInteraction : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("FuseFQtoInteraction", "0"); + OPENVINO_MATCHER_PASS_RTTI("FuseFQtoInteraction"); FuseFQtoInteraction(); }; class ConvertInteractionInt8 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertInteractionInt8", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertInteractionInt8"); ConvertInteractionInt8(); }; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/mha_fusion.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/mha_fusion.hpp index 9273220c4a0a0c..1243892db55d40 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/mha_fusion.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/mha_fusion.hpp @@ -27,31 +27,31 @@ class MHAFusionBase : public ov::pass::MatcherPass { class MHAFloatFusion : public MHAFusionBase { public: - OPENVINO_RTTI("MHAFloatFusion", "0"); + OPENVINO_RTTI("MHAFloatFusion", "0", MHAFusionBase); MHAFloatFusion(); }; class MHAFloatFusion2 : public MHAFusionBase { public: - OPENVINO_RTTI("MHAFloatFusion2", "0"); + OPENVINO_RTTI("MHAFloatFusion2", "0", MHAFusionBase); MHAFloatFusion2(); }; class MHAQuantFusion : public MHAFusionBase { public: - OPENVINO_RTTI("MHAQuantFusion", "0"); + OPENVINO_RTTI("MHAQuantFusion", "0", MHAFusionBase); MHAQuantFusion(); }; class MHAQuantFusion2 : public MHAFusionBase { public: - OPENVINO_RTTI("MHAQuantFusion2", "0"); + OPENVINO_RTTI("MHAQuantFusion2", "0", MHAFusionBase); MHAQuantFusion2(); }; class MHAFusion : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("MHAFusion", "0"); + OPENVINO_RTTI("MHAFusion", "0", ov::pass::GraphRewrite); MHAFusion() { add_matcher(); add_matcher(); diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/mlp_fusion.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/mlp_fusion.hpp index 5754d0fa9b622f..139aaaa488a1cb 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/mlp_fusion.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/mlp_fusion.hpp @@ -11,9 +11,9 @@ namespace intel_cpu { class MLPFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MLPFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("MLPFusion"); MLPFusion(); }; } // namespace intel_cpu -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/qkv_proj_fusion.cpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/qkv_proj_fusion.cpp index 10e3f39801a30a..25f4d07b07bde3 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/qkv_proj_fusion.cpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/qkv_proj_fusion.cpp @@ -72,7 +72,7 @@ ov::intel_cpu::QKVProjFusion::QKVProjFusion() { size_t hidden_size = 0; std::vector proj_size; for (auto& child : children) { - auto mm = dynamic_cast(child.get_node()); + auto mm = ov::as_type(child.get_node()); if (!mm) { // maybe a ShapeOf continue; diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/qkv_proj_fusion.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/qkv_proj_fusion.hpp index bfaf42f1f0acd3..e5b1743a68f7e6 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/qkv_proj_fusion.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/qkv_proj_fusion.hpp @@ -11,15 +11,15 @@ namespace intel_cpu { class QKVProjFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("QKVProjFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("QKVProjFusion"); QKVProjFusion(); }; class QKVProjFusion2 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("QKVProjFusion2", "0"); + OPENVINO_MATCHER_PASS_RTTI("QKVProjFusion2"); QKVProjFusion2(); }; } // namespace intel_cpu -} // namespace ov \ No newline at end of file +} // namespace ov diff --git a/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/sdpa_fuse_transpose_reshape.hpp b/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/sdpa_fuse_transpose_reshape.hpp index d2bb84893c0728..ebba0a3ec9e185 100644 --- a/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/sdpa_fuse_transpose_reshape.hpp +++ b/src/plugins/intel_cpu/src/transformations/cpu_opset/x64/pass/sdpa_fuse_transpose_reshape.hpp @@ -10,7 +10,7 @@ namespace ov { namespace intel_cpu { class SDPAFuseTransposeReshape : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SDPAFuseTransposeReshape", "0"); + OPENVINO_MATCHER_PASS_RTTI("SDPAFuseTransposeReshape"); SDPAFuseTransposeReshape(); }; diff --git a/src/plugins/intel_cpu/src/transformations/snippets/aarch64/pass/snippets_mark_skipped.hpp b/src/plugins/intel_cpu/src/transformations/snippets/aarch64/pass/snippets_mark_skipped.hpp index 2b17039d198bf3..bf199c91fce2de 100644 --- a/src/plugins/intel_cpu/src/transformations/snippets/aarch64/pass/snippets_mark_skipped.hpp +++ b/src/plugins/intel_cpu/src/transformations/snippets/aarch64/pass/snippets_mark_skipped.hpp @@ -16,7 +16,7 @@ namespace intel_cpu { */ class SnippetsMarkSkipped : public ov::pass::ModelPass { public: - OPENVINO_RTTI("SnippetsMarkSkipped", "0"); + OPENVINO_RTTI("SnippetsMarkSkipped", "0", ov::pass::ModelPass); SnippetsMarkSkipped() : ModelPass() {} bool run_on_model(const std::shared_ptr&) override; }; diff --git a/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/brgemm_to_brgemm_cpu.hpp b/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/brgemm_to_brgemm_cpu.hpp index 2cbf2d7e087919..99661bf3ea4135 100644 --- a/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/brgemm_to_brgemm_cpu.hpp +++ b/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/brgemm_to_brgemm_cpu.hpp @@ -34,7 +34,7 @@ namespace pass { */ class BrgemmToBrgemmCPU : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("BrgemmToBrgemmCPU", "0"); + OPENVINO_MATCHER_PASS_RTTI("BrgemmToBrgemmCPU"); BrgemmToBrgemmCPU(); }; diff --git a/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/eliminate_brgemm_copy_b.hpp b/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/eliminate_brgemm_copy_b.hpp index 89815eb1d6ffbf..c330bc9c922381 100644 --- a/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/eliminate_brgemm_copy_b.hpp +++ b/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/eliminate_brgemm_copy_b.hpp @@ -20,7 +20,7 @@ namespace pass { */ class EliminateBrgemmCopyB : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EliminateBrgemmCopyB", "0"); + OPENVINO_MATCHER_PASS_RTTI("EliminateBrgemmCopyB"); EliminateBrgemmCopyB(); }; diff --git a/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/enforce_precision.hpp b/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/enforce_precision.hpp index 05f8d1206715f0..0776d018b5ec2b 100644 --- a/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/enforce_precision.hpp +++ b/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/enforce_precision.hpp @@ -15,7 +15,7 @@ namespace pass { class EnforcePrecision : public ov::pass::ModelPass { public: - OPENVINO_RTTI("EnforcePrecision", "0"); + OPENVINO_RTTI("EnforcePrecision", "0", ov::pass::ModelPass); EnforcePrecision(const element::Type source, const element::Type target, diff --git a/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/remove_converts.hpp b/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/remove_converts.hpp index 000321a8918ccd..2c965871840572 100644 --- a/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/remove_converts.hpp +++ b/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/remove_converts.hpp @@ -17,7 +17,7 @@ namespace pass { */ class RemoveConverts : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("RemoveConverts", "0"); + OPENVINO_MATCHER_PASS_RTTI("RemoveConverts"); RemoveConverts(); }; diff --git a/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/snippets_mark_skipped.hpp b/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/snippets_mark_skipped.hpp index fc5250defac8cb..ad313bf16680a1 100644 --- a/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/snippets_mark_skipped.hpp +++ b/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/snippets_mark_skipped.hpp @@ -16,7 +16,7 @@ namespace intel_cpu { */ class SnippetsMarkSkipped : public ov::pass::ModelPass { public: - OPENVINO_RTTI("SnippetsMarkSkipped", "0"); + OPENVINO_RTTI("SnippetsMarkSkipped", "0", ov::pass::ModelPass); SnippetsMarkSkipped(bool enableBF16 = false) : ModelPass(), enableBF16(enableBF16) {} bool run_on_model(const std::shared_ptr&) override; diff --git a/src/plugins/intel_cpu/src/transformations/tpp/x64/pass/brgemm_to_brgemm_tpp.hpp b/src/plugins/intel_cpu/src/transformations/tpp/x64/pass/brgemm_to_brgemm_tpp.hpp index 0fb26f6df1d6b2..2b73104d1e1335 100644 --- a/src/plugins/intel_cpu/src/transformations/tpp/x64/pass/brgemm_to_brgemm_tpp.hpp +++ b/src/plugins/intel_cpu/src/transformations/tpp/x64/pass/brgemm_to_brgemm_tpp.hpp @@ -18,7 +18,7 @@ namespace pass { */ class BrgemmToBrgemmTPP: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("BrgemmToBrgemmTPP", "0"); + OPENVINO_MATCHER_PASS_RTTI("BrgemmToBrgemmTPP"); BrgemmToBrgemmTPP(); static bool is_supported_brgemm_configuration(const std::vector>& layouts, diff --git a/src/plugins/intel_cpu/src/transformations/tpp/x64/pass/eltwise_to_eltwise_tpp.hpp b/src/plugins/intel_cpu/src/transformations/tpp/x64/pass/eltwise_to_eltwise_tpp.hpp index 189d048e86ffd7..f0bdab120c3498 100644 --- a/src/plugins/intel_cpu/src/transformations/tpp/x64/pass/eltwise_to_eltwise_tpp.hpp +++ b/src/plugins/intel_cpu/src/transformations/tpp/x64/pass/eltwise_to_eltwise_tpp.hpp @@ -18,7 +18,7 @@ namespace pass { */ class EltwiseToEltwiseTPP: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("EltwiseToEltwiseTPP", "0"); + OPENVINO_MATCHER_PASS_RTTI("EltwiseToEltwiseTPP"); EltwiseToEltwiseTPP(); }; diff --git a/src/plugins/intel_cpu/src/transformations/tpp/x64/pass/fuse_tpp_to_equations.hpp b/src/plugins/intel_cpu/src/transformations/tpp/x64/pass/fuse_tpp_to_equations.hpp index 9a00f97d9c464d..8b62b75013a92d 100644 --- a/src/plugins/intel_cpu/src/transformations/tpp/x64/pass/fuse_tpp_to_equations.hpp +++ b/src/plugins/intel_cpu/src/transformations/tpp/x64/pass/fuse_tpp_to_equations.hpp @@ -18,7 +18,7 @@ namespace pass { */ class FuseTPPToEquations: public ov::pass::ModelPass { public: - OPENVINO_RTTI("FuseTPPToEquations", "0"); + OPENVINO_RTTI("FuseTPPToEquations", "0", ov::pass::ModelPass); FuseTPPToEquations() = default; bool run_on_model(const std::shared_ptr& m) override; private: diff --git a/src/plugins/intel_cpu/src/transformations/tpp/x64/pass/scalar_to_scalar_tpp.hpp b/src/plugins/intel_cpu/src/transformations/tpp/x64/pass/scalar_to_scalar_tpp.hpp index 8bbfcf80c751ac..a56e23363067e2 100644 --- a/src/plugins/intel_cpu/src/transformations/tpp/x64/pass/scalar_to_scalar_tpp.hpp +++ b/src/plugins/intel_cpu/src/transformations/tpp/x64/pass/scalar_to_scalar_tpp.hpp @@ -18,7 +18,7 @@ namespace pass { */ class ScalarToScalarTPP: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ScalarToScalarTPP", "0"); + OPENVINO_MATCHER_PASS_RTTI("ScalarToScalarTPP"); ScalarToScalarTPP(); }; diff --git a/src/plugins/intel_gpu/include/intel_gpu/op/fully_connected_compressed.hpp b/src/plugins/intel_gpu/include/intel_gpu/op/fully_connected_compressed.hpp index e58c6ab4cb17f1..2f9c4817fe2b43 100644 --- a/src/plugins/intel_gpu/include/intel_gpu/op/fully_connected_compressed.hpp +++ b/src/plugins/intel_gpu/include/intel_gpu/op/fully_connected_compressed.hpp @@ -12,7 +12,7 @@ namespace op { class FullyConnectedCompressed : public FullyConnected { public: - OPENVINO_OP("FullyConnectedCompressed", "gpu_opset"); + OPENVINO_OP("FullyConnectedCompressed", "gpu_opset", FullyConnected); FullyConnectedCompressed() = default; diff --git a/src/plugins/intel_gpu/include/intel_gpu/op/gemm.hpp b/src/plugins/intel_gpu/include/intel_gpu/op/gemm.hpp index 41b610d078546a..8f78f8fa309c58 100644 --- a/src/plugins/intel_gpu/include/intel_gpu/op/gemm.hpp +++ b/src/plugins/intel_gpu/include/intel_gpu/op/gemm.hpp @@ -15,7 +15,7 @@ namespace op { class Gemm : public ov::op::v0::MatMul { public: - OPENVINO_OP("Gemm", "gpu_opset"); + OPENVINO_OP("Gemm", "gpu_opset", ov::op::v0::MatMul); Gemm() = default; diff --git a/src/plugins/intel_gpu/include/intel_gpu/op/indirect_gemm.hpp b/src/plugins/intel_gpu/include/intel_gpu/op/indirect_gemm.hpp index 654f049f278c79..501d78a151f7cb 100644 --- a/src/plugins/intel_gpu/include/intel_gpu/op/indirect_gemm.hpp +++ b/src/plugins/intel_gpu/include/intel_gpu/op/indirect_gemm.hpp @@ -15,7 +15,7 @@ namespace op { class IndirectGemm : public ov::intel_gpu::op::Gemm { public: - OPENVINO_OP("IndirectGemm", "gpu_opset"); + OPENVINO_OP("IndirectGemm", "gpu_opset", ov::intel_gpu::op::Gemm); IndirectGemm() = default; diff --git a/src/plugins/intel_gpu/include/intel_gpu/op/indirect_sdpa.hpp b/src/plugins/intel_gpu/include/intel_gpu/op/indirect_sdpa.hpp index 7c45c93c7e74f1..315cec11d5c135 100644 --- a/src/plugins/intel_gpu/include/intel_gpu/op/indirect_sdpa.hpp +++ b/src/plugins/intel_gpu/include/intel_gpu/op/indirect_sdpa.hpp @@ -15,7 +15,7 @@ namespace op { class IndirectSDPA : public ov::intel_gpu::op::SDPA { public: - OPENVINO_OP("IndirectSDPA", "gpu_opset"); + OPENVINO_OP("IndirectSDPA", "gpu_opset", ov::intel_gpu::op::SDPA); IndirectSDPA() = default; diff --git a/src/plugins/intel_gpu/include/intel_gpu/op/kv_cache_compressed.hpp b/src/plugins/intel_gpu/include/intel_gpu/op/kv_cache_compressed.hpp index 4ee8cb388b61ea..ee8e9d0e026b8f 100644 --- a/src/plugins/intel_gpu/include/intel_gpu/op/kv_cache_compressed.hpp +++ b/src/plugins/intel_gpu/include/intel_gpu/op/kv_cache_compressed.hpp @@ -15,7 +15,7 @@ namespace op { /// This operation updates data of the corresponding Variable class KVCacheCompressed : public ov::intel_gpu::op::KVCache { public: - OPENVINO_OP("KVCacheCompressed", "gpu_opset"); + OPENVINO_OP("KVCacheCompressed", "gpu_opset", ov::intel_gpu::op::KVCache); using QuantizationAttrs = ov::op::internal::DynamicQuantize::Attributes; diff --git a/src/plugins/intel_gpu/include/intel_gpu/op/read_values.hpp b/src/plugins/intel_gpu/include/intel_gpu/op/read_values.hpp index ecbda9364d7b3b..6cf6c14f2b1d2f 100644 --- a/src/plugins/intel_gpu/include/intel_gpu/op/read_values.hpp +++ b/src/plugins/intel_gpu/include/intel_gpu/op/read_values.hpp @@ -14,7 +14,7 @@ namespace op { // representation (which can store multiple states in a single variable) at the graph level. class ReadValues : public ReadValue { public: - OPENVINO_OP("ReadValues", "gpu_opset"); + OPENVINO_OP("ReadValues", "gpu_opset", ReadValue); ReadValues() = default; diff --git a/src/plugins/intel_gpu/include/intel_gpu/op/sdpa.hpp b/src/plugins/intel_gpu/include/intel_gpu/op/sdpa.hpp index f7bc0d780ffd38..47e3922e39c3a5 100644 --- a/src/plugins/intel_gpu/include/intel_gpu/op/sdpa.hpp +++ b/src/plugins/intel_gpu/include/intel_gpu/op/sdpa.hpp @@ -16,7 +16,7 @@ namespace op { class SDPA : public ov::op::v13::ScaledDotProductAttention { public: - OPENVINO_OP("SDPA", "gpu_opset"); + OPENVINO_OP("SDPA", "gpu_opset", ov::op::v13::ScaledDotProductAttention); using QuantizationAttribute = ov::op::internal::DynamicQuantize::Attributes; diff --git a/src/plugins/intel_gpu/include/intel_gpu/plugin/program_builder.hpp b/src/plugins/intel_gpu/include/intel_gpu/plugin/program_builder.hpp index 5cede62fd17e69..0b767ddb0a9626 100644 --- a/src/plugins/intel_gpu/include/intel_gpu/plugin/program_builder.hpp +++ b/src/plugins/intel_gpu/include/intel_gpu/plugin/program_builder.hpp @@ -42,7 +42,7 @@ void __register ## _ ## op_name ## _ ## op_version(); void __register ## _ ## op_name ## _ ## op_version() { \ ProgramBuilder::RegisterFactory( \ [](ProgramBuilder& p, const std::shared_ptr& op) { \ - auto op_casted = std::dynamic_pointer_cast(op); \ + auto op_casted = ov::as_type_ptr(op); \ OPENVINO_ASSERT(op_casted, "[GPU] Invalid ov Node type passed into ", __PRETTY_FUNCTION__); \ Create##op_name##Op(p, op_casted); \ }); \ diff --git a/src/plugins/intel_gpu/src/plugin/ops/scatter_elements_update.cpp b/src/plugins/intel_gpu/src/plugin/ops/scatter_elements_update.cpp index 1a5d8424e0a402..fbfdf5eb50f02c 100644 --- a/src/plugins/intel_gpu/src/plugin/ops/scatter_elements_update.cpp +++ b/src/plugins/intel_gpu/src/plugin/ops/scatter_elements_update.cpp @@ -26,7 +26,7 @@ static void CreateScatterElementsUpdateOp(ProgramBuilder& p, const std::shared_p auto mode = cldnn::ScatterElementsUpdateOp::Reduction::NONE; auto use_init_val = true; - if (const auto op_v12 = std::dynamic_pointer_cast(op)) { + if (const auto op_v12 = ov::as_type_ptr(op)) { mode = op_v12->get_reduction(); use_init_val = op_v12->get_use_init_val(); } diff --git a/src/plugins/intel_gpu/src/plugin/transformations/bcast_and_pad_zp_buffers.hpp b/src/plugins/intel_gpu/src/plugin/transformations/bcast_and_pad_zp_buffers.hpp index 1a869b8afbddf2..1fab1692d97cbe 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/bcast_and_pad_zp_buffers.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/bcast_and_pad_zp_buffers.hpp @@ -13,7 +13,7 @@ namespace intel_gpu { // and adds optional padding to align elements count to `alignment` value class BroadcastAndPadZeroPointBuffers : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("BroadcastAndPadZeroPointBuffers", "0"); + OPENVINO_MATCHER_PASS_RTTI("BroadcastAndPadZeroPointBuffers"); BroadcastAndPadZeroPointBuffers(size_t alignment = 1, bool supports_immad = false); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/binary_conv_to_conv.hpp b/src/plugins/intel_gpu/src/plugin/transformations/binary_conv_to_conv.hpp index 90d62a8e7a1fa5..bf372ae19c1553 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/binary_conv_to_conv.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/binary_conv_to_conv.hpp @@ -11,7 +11,7 @@ namespace intel_gpu { class ConvertBinaryConvolutionToConvolution: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertBinaryConvolutionToConvolution", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertBinaryConvolutionToConvolution"); ConvertBinaryConvolutionToConvolution(); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/clamp_fp16_output.hpp b/src/plugins/intel_gpu/src/plugin/transformations/clamp_fp16_output.hpp index ac93d446ee749d..bea51c2e768576 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/clamp_fp16_output.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/clamp_fp16_output.hpp @@ -18,7 +18,7 @@ namespace intel_gpu { */ class ClampFP16Output: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ov::intel_gpu::ClampFP16Output"); + OPENVINO_MATCHER_PASS_RTTI("ov::intel_gpu::ClampFP16Output"); ClampFP16Output(); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/convert_convolution.cpp b/src/plugins/intel_gpu/src/plugin/transformations/convert_convolution.cpp index 656b4c6fd99c20..2679233ecaf2e8 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/convert_convolution.cpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/convert_convolution.cpp @@ -73,9 +73,9 @@ ov::Tensor get_compensation(ov::Tensor* w_tensor, ov::Tensor* azp_tensor, ov::Te } ov::Tensor get_compensation(std::shared_ptr w, std::shared_ptr azp, std::shared_ptr wzp, int64_t groups) { - auto w_const = std::dynamic_pointer_cast(w); - auto azp_const = std::dynamic_pointer_cast(azp); - auto wzp_const = std::dynamic_pointer_cast(wzp); + auto w_const = ov::as_type_ptr(w); + auto azp_const = ov::as_type_ptr(azp); + auto wzp_const = ov::as_type_ptr(wzp); OPENVINO_ASSERT(w_const != nullptr && azp_const != nullptr); @@ -102,13 +102,13 @@ ov::Tensor get_compensation(std::shared_ptr w, std::shared_ptr(pattern_map.at(convolution_m).get_node_shared_ptr()); + auto conv_node = ov::as_type_ptr(pattern_map.at(convolution_m).get_node_shared_ptr()); int64_t groups = -1; - if (auto grouped_conv = std::dynamic_pointer_cast(conv_node)) { + if (auto grouped_conv = ov::as_type_ptr(conv_node)) { auto weights_shape = grouped_conv->get_input_partial_shape(1); if (weights_shape[0].is_dynamic()) return false; groups = weights_shape[0].get_length(); } - auto weights = std::dynamic_pointer_cast(pattern_map.at(weights_m).get_node_shared_ptr()); + auto weights = ov::as_type_ptr(pattern_map.at(weights_m).get_node_shared_ptr()); std::shared_ptr no_bias = std::make_shared(); std::shared_ptr optional_wzp_point = std::make_shared(); std::shared_ptr optional_azp_point = std::make_shared(); @@ -196,10 +196,10 @@ ConvolutionMatcher::ConvolutionMatcher() { return false; } - auto conv_node = std::dynamic_pointer_cast(pattern_map.at(convolution_m).get_node_shared_ptr()); + auto conv_node = ov::as_type_ptr(pattern_map.at(convolution_m).get_node_shared_ptr()); int64_t groups = -1; - if (auto grouped_conv = std::dynamic_pointer_cast(conv_node)) { + if (auto grouped_conv = ov::as_type_ptr(conv_node)) { auto weights_shape = grouped_conv->get_input_partial_shape(1); if (weights_shape[0].is_dynamic()) return false; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/convert_convolution.hpp b/src/plugins/intel_gpu/src/plugin/transformations/convert_convolution.hpp index 004bd4fad561a8..9ec75aa3df02c8 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/convert_convolution.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/convert_convolution.hpp @@ -11,7 +11,7 @@ namespace intel_gpu { class ConvertConvolutionToInternal : public ov::pass::ModelPass { public: - OPENVINO_RTTI("ConvertConvolutionToInternal", "0"); + OPENVINO_RTTI("ConvertConvolutionToInternal", "0", ov::pass::ModelPass); bool run_on_model(const std::shared_ptr& m) override; }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/convert_fc_to_compressed.hpp b/src/plugins/intel_gpu/src/plugin/transformations/convert_fc_to_compressed.hpp index d2bc71a91f1285..ec8f2bc3a8f4c7 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/convert_fc_to_compressed.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/convert_fc_to_compressed.hpp @@ -11,7 +11,7 @@ namespace intel_gpu { class ConvertFullyConnectedToFullyConnectedCompressed: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertFullyConnectedToFullyConnectedCompressed", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertFullyConnectedToFullyConnectedCompressed"); ConvertFullyConnectedToFullyConnectedCompressed(); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/convert_matmul_to_fc.hpp b/src/plugins/intel_gpu/src/plugin/transformations/convert_matmul_to_fc.hpp index 4e7a9cb312113f..4520944a99faf3 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/convert_matmul_to_fc.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/convert_matmul_to_fc.hpp @@ -11,7 +11,7 @@ namespace intel_gpu { class ConvertMatMulToFullyConnected: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertMatMulToFullyConnected", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertMatMulToFullyConnected"); ConvertMatMulToFullyConnected(); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/convert_pooling_to_reduce.hpp b/src/plugins/intel_gpu/src/plugin/transformations/convert_pooling_to_reduce.hpp index 656025154f120e..0b52197008f127 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/convert_pooling_to_reduce.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/convert_pooling_to_reduce.hpp @@ -12,7 +12,7 @@ namespace intel_gpu { class ConvertAvgPoolingToReduce : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertAvgPoolingToReduce", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertAvgPoolingToReduce"); ConvertAvgPoolingToReduce(); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/convert_shapeof.hpp b/src/plugins/intel_gpu/src/plugin/transformations/convert_shapeof.hpp index 580ac7e64a2659..e08814489065e5 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/convert_shapeof.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/convert_shapeof.hpp @@ -12,7 +12,7 @@ namespace intel_gpu { class ConvertShapeOf1To3 : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertShapeOf1To3", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertShapeOf1To3"); ConvertShapeOf1To3(); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/convert_stridedslices_to_variadicsplit.hpp b/src/plugins/intel_gpu/src/plugin/transformations/convert_stridedslices_to_variadicsplit.hpp index 83162e36b4c0ae..987d3e8a69b589 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/convert_stridedslices_to_variadicsplit.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/convert_stridedslices_to_variadicsplit.hpp @@ -11,7 +11,7 @@ namespace intel_gpu { class ConvertStridedSlicesToVariadicSplit : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("ConvertStridedSlicesToVariadicSplit", "0"); + OPENVINO_MATCHER_PASS_RTTI("ConvertStridedSlicesToVariadicSplit"); ConvertStridedSlicesToVariadicSplit(); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/decompose_reduce_scalar_output.hpp b/src/plugins/intel_gpu/src/plugin/transformations/decompose_reduce_scalar_output.hpp index cb5db2b715c333..85dc9df868b0ea 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/decompose_reduce_scalar_output.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/decompose_reduce_scalar_output.hpp @@ -15,7 +15,7 @@ namespace intel_gpu { // detect this case and decompose Reduce by dimension to avoid poor performance. class DecomposeReduceForScalarOutput : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("DecomposeReduceForScalarOutput", "0"); + OPENVINO_MATCHER_PASS_RTTI("DecomposeReduceForScalarOutput"); DecomposeReduceForScalarOutput(); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/dynamic_quantize_fully_connected.hpp b/src/plugins/intel_gpu/src/plugin/transformations/dynamic_quantize_fully_connected.hpp index b5d956f7872b5c..8d340c35941d23 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/dynamic_quantize_fully_connected.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/dynamic_quantize_fully_connected.hpp @@ -11,7 +11,7 @@ namespace intel_gpu { class DynamicQuantizeFullyConnected: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("DynamicQuantizeFullyConnected", "0"); + OPENVINO_MATCHER_PASS_RTTI("DynamicQuantizeFullyConnected"); DynamicQuantizeFullyConnected(uint64_t group_size); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/fc_convert_fusion.hpp b/src/plugins/intel_gpu/src/plugin/transformations/fc_convert_fusion.hpp index 44db1882f8e87f..7088fd170b92f6 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/fc_convert_fusion.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/fc_convert_fusion.hpp @@ -11,7 +11,7 @@ namespace intel_gpu { class FullyConnectedConvertFusion: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("FullyConnectedConvertFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("FullyConnectedConvertFusion"); FullyConnectedConvertFusion(); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/fc_horizontal_fusion.hpp b/src/plugins/intel_gpu/src/plugin/transformations/fc_horizontal_fusion.hpp index 67abaa3df54357..adaab51602668e 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/fc_horizontal_fusion.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/fc_horizontal_fusion.hpp @@ -9,11 +9,11 @@ namespace ov { namespace intel_gpu { -class FullyConnectedHorizontalFusion: public ov::pass::MatcherPass { +class FullyConnectedHorizontalFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("FullyConnectedHorizontalFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("FullyConnectedHorizontalFusion"); FullyConnectedHorizontalFusion(bool fuse_mlp_swiglu = false); }; -} // namespace intel_gpu -} // namespace ov +} // namespace intel_gpu +} // namespace ov diff --git a/src/plugins/intel_gpu/src/plugin/transformations/fc_per_layer_scaling.hpp b/src/plugins/intel_gpu/src/plugin/transformations/fc_per_layer_scaling.hpp index 5c0d7d07f5b411..72fa60d818f8d4 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/fc_per_layer_scaling.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/fc_per_layer_scaling.hpp @@ -11,7 +11,7 @@ namespace intel_gpu { class FullyConnectedPerLayerScaling: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("FullyConnectedPerLayerScaling", "0"); + OPENVINO_MATCHER_PASS_RTTI("FullyConnectedPerLayerScaling"); FullyConnectedPerLayerScaling(float scale_factor); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/group_norm_composition.hpp b/src/plugins/intel_gpu/src/plugin/transformations/group_norm_composition.hpp index 889d0e9ec57e56..ccd30b4fe2c66f 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/group_norm_composition.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/group_norm_composition.hpp @@ -11,7 +11,7 @@ namespace intel_gpu { class GroupNormComposition : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("GroupNormComposition", "0"); + OPENVINO_MATCHER_PASS_RTTI("GroupNormComposition"); GroupNormComposition(); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/increase_position_ids_precision.hpp b/src/plugins/intel_gpu/src/plugin/transformations/increase_position_ids_precision.hpp index b6046958f8d177..f8bed4ddeee2a8 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/increase_position_ids_precision.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/increase_position_ids_precision.hpp @@ -17,7 +17,7 @@ namespace intel_gpu { */ class IncreasePositionIdsPrecision : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("IncreasePositionIdsPrecision", "0"); + OPENVINO_MATCHER_PASS_RTTI("IncreasePositionIdsPrecision"); IncreasePositionIdsPrecision(); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/indirect_kv_cache.hpp b/src/plugins/intel_gpu/src/plugin/transformations/indirect_kv_cache.hpp index 2a6c4a347f9217..2f768679ee22d2 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/indirect_kv_cache.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/indirect_kv_cache.hpp @@ -38,19 +38,19 @@ namespace intel_gpu { /// └───────────┘ └───────────────┘ class IndirectKVCache : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("IndirectKVCache", "0"); + OPENVINO_RTTI("IndirectKVCache", "0", ov::pass::GraphRewrite); IndirectKVCache(); }; class IndirectGemmOpt : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("IndirectGemmOpt", "0"); + OPENVINO_MATCHER_PASS_RTTI("IndirectGemmOpt"); IndirectGemmOpt(); }; class IndirectSDPAOpt : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("IndirectSDPAOpt", "0"); + OPENVINO_MATCHER_PASS_RTTI("IndirectSDPAOpt"); IndirectSDPAOpt(); }; } // namespace intel_gpu diff --git a/src/plugins/intel_gpu/src/plugin/transformations/kv_cache_compression.cpp b/src/plugins/intel_gpu/src/plugin/transformations/kv_cache_compression.cpp index 6903b52963a879..6b6150a8e32db4 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/kv_cache_compression.cpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/kv_cache_compression.cpp @@ -126,7 +126,7 @@ std::shared_ptr class KVCacheCompressionMatcher : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("KVCacheCompressionMatcher", "0"); + OPENVINO_MATCHER_PASS_RTTI("KVCacheCompressionMatcher"); KVCacheCompressionMatcher(ov::element::Type compression_dt); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/kv_cache_compression.hpp b/src/plugins/intel_gpu/src/plugin/transformations/kv_cache_compression.hpp index 1587021a03ed36..dd472e85b43dc7 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/kv_cache_compression.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/kv_cache_compression.hpp @@ -32,7 +32,7 @@ namespace intel_gpu { class KVCacheCompression : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("KVCacheCompression", "0"); + OPENVINO_RTTI("KVCacheCompression", "0", ov::pass::GraphRewrite); KVCacheCompression(ov::element::Type compression_dt); bool run_on_model(const std::shared_ptr& m) override; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/kv_cache_fusion.cpp b/src/plugins/intel_gpu/src/plugin/transformations/kv_cache_fusion.cpp index 8be42a1311094b..f22b32b23ea407 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/kv_cache_fusion.cpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/kv_cache_fusion.cpp @@ -30,7 +30,7 @@ namespace intel_gpu { class KVCacheFusionMatcher : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("KVCacheFusionMatcher", "0"); + OPENVINO_MATCHER_PASS_RTTI("KVCacheFusionMatcher"); KVCacheFusionMatcher(); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/kv_cache_fusion.hpp b/src/plugins/intel_gpu/src/plugin/transformations/kv_cache_fusion.hpp index dbe147da8d46b7..76768baf069dc2 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/kv_cache_fusion.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/kv_cache_fusion.hpp @@ -76,7 +76,7 @@ namespace intel_gpu { /// └─────────────┘ └───────────┘ └─────────┘ class KVCacheFusion : public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("KVCacheFusion", "0"); + OPENVINO_RTTI("KVCacheFusion", "0", ov::pass::GraphRewrite); KVCacheFusion(); bool run_on_model(const std::shared_ptr& m) override; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/move_fc_reshape_to_weights.hpp b/src/plugins/intel_gpu/src/plugin/transformations/move_fc_reshape_to_weights.hpp index f573abd4589e8f..7237e5c97ace70 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/move_fc_reshape_to_weights.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/move_fc_reshape_to_weights.hpp @@ -30,7 +30,7 @@ namespace intel_gpu { */ class MoveFCReshapeToWeights: public ov::pass::MatcherPass { public: - OPENVINO_RTTI("MoveFCReshapeToWeights", "0"); + OPENVINO_MATCHER_PASS_RTTI("MoveFCReshapeToWeights"); MoveFCReshapeToWeights(); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/optimize_subsequent_reshapes.hpp b/src/plugins/intel_gpu/src/plugin/transformations/optimize_subsequent_reshapes.hpp index 3a38bb92ad5167..702b18e7fc5dc9 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/optimize_subsequent_reshapes.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/optimize_subsequent_reshapes.hpp @@ -15,7 +15,7 @@ namespace intel_gpu { */ class OptimizeSubsequentReshapes : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("OptimizeSubsequentReshapes", "0"); + OPENVINO_MATCHER_PASS_RTTI("OptimizeSubsequentReshapes"); OptimizeSubsequentReshapes(); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/print_model_statistics.hpp b/src/plugins/intel_gpu/src/plugin/transformations/print_model_statistics.hpp index 079028f0154848..4a6fa970fb545d 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/print_model_statistics.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/print_model_statistics.hpp @@ -11,7 +11,7 @@ namespace intel_gpu { class PrintModelStatistics : public ov::pass::ModelPass { public: - OPENVINO_RTTI("PrintModelStatistics", "0"); + OPENVINO_RTTI("PrintModelStatistics", "0", ov::pass::ModelPass); PrintModelStatistics() = default; bool run_on_model(const std::shared_ptr& m) override; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/transpose_fusion.hpp b/src/plugins/intel_gpu/src/plugin/transformations/transpose_fusion.hpp index 4869100054b819..dd27fbc5273c41 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/transpose_fusion.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/transpose_fusion.hpp @@ -11,25 +11,25 @@ namespace intel_gpu { class TransposeFusion: public ov::pass::GraphRewrite { public: - OPENVINO_RTTI("TransposeFusion", "0"); + OPENVINO_RTTI("TransposeFusion", "0", ov::pass::GraphRewrite); TransposeFusion(bool supports_immad = false); }; class TransposeMatMulMatcher : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TransposeMatMulMatcher", "0"); + OPENVINO_MATCHER_PASS_RTTI("TransposeMatMulMatcher"); TransposeMatMulMatcher(bool supports_immad); }; class TransposeMatMulTransposeMatcher : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TransposeMatMulTransposeMatcher", "0"); + OPENVINO_MATCHER_PASS_RTTI("TransposeMatMulTransposeMatcher"); TransposeMatMulTransposeMatcher(bool supports_immad); }; class TransposeSDPAMatcher : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("TransposeSDPAMatcher", "0"); + OPENVINO_MATCHER_PASS_RTTI("TransposeSDPAMatcher"); TransposeSDPAMatcher(); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/unsqueeze_broadcast_reshape_matmul_fusion.hpp b/src/plugins/intel_gpu/src/plugin/transformations/unsqueeze_broadcast_reshape_matmul_fusion.hpp index 35ed30cdc9726e..3e5926561820b8 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/unsqueeze_broadcast_reshape_matmul_fusion.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/unsqueeze_broadcast_reshape_matmul_fusion.hpp @@ -11,7 +11,7 @@ namespace intel_gpu { class UnsqueezeBroadcastReshapeMatmulFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("UnsqueezeBroadcastReshapeMatmulFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("UnsqueezeBroadcastReshapeMatmulFusion"); UnsqueezeBroadcastReshapeMatmulFusion(); }; diff --git a/src/plugins/intel_gpu/src/plugin/transformations/unsqueeze_broadcast_reshape_sdpa_fusion.hpp b/src/plugins/intel_gpu/src/plugin/transformations/unsqueeze_broadcast_reshape_sdpa_fusion.hpp index ede3ac16fb51b5..e740e846409ea9 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/unsqueeze_broadcast_reshape_sdpa_fusion.hpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/unsqueeze_broadcast_reshape_sdpa_fusion.hpp @@ -11,7 +11,7 @@ namespace intel_gpu { class UnsqueezeBroadcastReshapeSDPAFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("UnsqueezeBroadcastReshapeSDPAFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("UnsqueezeBroadcastReshapeSDPAFusion"); UnsqueezeBroadcastReshapeSDPAFusion(); }; diff --git a/src/plugins/template/backend/ops/string_tensor_pack.cpp b/src/plugins/template/backend/ops/string_tensor_pack.cpp index dec0f8fd058e60..2d8c0e5dbd6014 100644 --- a/src/plugins/template/backend/ops/string_tensor_pack.cpp +++ b/src/plugins/template/backend/ops/string_tensor_pack.cpp @@ -11,7 +11,7 @@ template <> bool evaluate_node(std::shared_ptr node, ov::TensorVector& outputs, const ov::TensorVector& inputs) { - auto string_tensor_pack = std::dynamic_pointer_cast(node); + auto string_tensor_pack = ov::as_type_ptr(node); OPENVINO_ASSERT(string_tensor_pack, "Node passed to StringTensorPack evaluate function is invalid."); ov::Shape output_shape; output_shape = ov::op::v15::shape_infer(string_tensor_pack.get(), diff --git a/src/plugins/template/backend/ops/string_tensor_unpack.cpp b/src/plugins/template/backend/ops/string_tensor_unpack.cpp index 319762023265d5..ff3cd95efbac4b 100644 --- a/src/plugins/template/backend/ops/string_tensor_unpack.cpp +++ b/src/plugins/template/backend/ops/string_tensor_unpack.cpp @@ -12,7 +12,7 @@ bool evaluate_node(std::shared_ptr no ov::TensorVector& outputs, const ov::TensorVector& inputs) { if (node->get_input_element_type(0) == ov::element::string) { - auto string_tensor_unpack = std::dynamic_pointer_cast(node); + auto string_tensor_unpack = ov::as_type_ptr(node); OPENVINO_ASSERT(string_tensor_unpack, "Node passed to StringTensorUnpack evaluate function is invalid."); std::vector output_shapes; output_shapes = ov::op::v15::shape_infer(string_tensor_unpack.get(), diff --git a/src/tests/ov_helpers/ov_snippets_models/include/precision_propagation.hpp b/src/tests/ov_helpers/ov_snippets_models/include/precision_propagation.hpp index 876dcec4e5bc28..730dae0f24e72b 100644 --- a/src/tests/ov_helpers/ov_snippets_models/include/precision_propagation.hpp +++ b/src/tests/ov_helpers/ov_snippets_models/include/precision_propagation.hpp @@ -21,7 +21,7 @@ namespace snippets { */ class DummyAdd : public ov::opset1::Add { public: - OPENVINO_OP("DummyAdd", "test::snippets"); + OPENVINO_OP("DummyAdd", "test::snippets", ov::opset1::Add); DummyAdd(const Output& arg0, const Output& arg1, diff --git a/src/tests/ov_helpers/ov_snippets_models/include/two_binary_ops.hpp b/src/tests/ov_helpers/ov_snippets_models/include/two_binary_ops.hpp index d469b3740542c4..7a7b97c450f93c 100644 --- a/src/tests/ov_helpers/ov_snippets_models/include/two_binary_ops.hpp +++ b/src/tests/ov_helpers/ov_snippets_models/include/two_binary_ops.hpp @@ -45,7 +45,7 @@ class BaseDummyOperation : public ov::op::Op { */ class DummyOperation1 : public BaseDummyOperation { public: - OPENVINO_OP("DummyOperation1", "test::snippets"); + OPENVINO_OP("DummyOperation1", "test::snippets", BaseDummyOperation); DummyOperation1( const Output& arg0, @@ -69,7 +69,7 @@ class DummyOperation1 : public BaseDummyOperation { */ class DummyOperation2 : public BaseDummyOperation { public: - OPENVINO_OP("DummyOperation2", "test::snippets"); + OPENVINO_OP("DummyOperation2", "test::snippets", BaseDummyOperation); DummyOperation2( const Output& arg0,