Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RTTI] Apply OPENVINO_MATCHER_PASS_RTTI in transformations #28152

Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace pass {

class TRANSFORMATIONS_API AlignEltwiseInputRanks : public MatcherPass {
public:
OPENVINO_RTTI("AlignEltwiseInputRanks", "0");
OPENVINO_MATCHER_PASS_RTTI("AlignEltwiseInputRanks");
AlignEltwiseInputRanks();
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ bool TRANSFORMATIONS_API is_model_optimized(const std::shared_ptr<ov::Model>& 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};

Expand All @@ -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();
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace pass {
*/
class TRANSFORMATIONS_API ConvolutionToGroupConvolutionFusion : public MatcherPass {
public:
OPENVINO_RTTI("ConvolutionToGroupConvolutionFusion", "0");
OPENVINO_MATCHER_PASS_RTTI("ConvolutionToGroupConvolutionFusion");
ConvolutionToGroupConvolutionFusion();
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};

Expand All @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ 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();
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -26,55 +26,55 @@ class TRANSFORMATIONS_API RoPEShareCosSin;

class ov::pass::RoPEFusionGPTNEOX : public ov::pass::MatcherPass {
public:
OPENVINO_RTTI("RoPEFusionGPTNEOX", "0");
OPENVINO_MATCHER_PASS_RTTI("RoPEFusionGPTNEOX");
RoPEFusionGPTNEOX();
};

class ov::pass::RoPEFusionFlux : public ov::pass::MatcherPass {
public:
OPENVINO_RTTI("RoPEFusionFlux", "0");
OPENVINO_MATCHER_PASS_RTTI("RoPEFusionFlux");
RoPEFusionFlux();
};

class ov::pass::RoPEFusionGPTJ : public ov::pass::MatcherPass {
public:
OPENVINO_RTTI("RoPEFusionGPTJ", "0");
OPENVINO_MATCHER_PASS_RTTI("RoPEFusionGPTJ");
RoPEFusionGPTJ();
};

class ov::pass::RoPEFusionChatGLM : public ov::pass::MatcherPass {
public:
OPENVINO_RTTI("RoPEFusionChatGLM", "0");
OPENVINO_MATCHER_PASS_RTTI("RoPEFusionChatGLM");
RoPEFusionChatGLM(int split_output_id, const bool support_2d_rope = false);
};

class ov::pass::RoPEFusionQwen : public ov::pass::MatcherPass {
public:
OPENVINO_RTTI("RoPEFusionQwen", "0");
OPENVINO_MATCHER_PASS_RTTI("RoPEFusionQwen");
RoPEFusionQwen(int split_output_id);
};

class ov::pass::RoPEFusionIOSlicing : public ov::pass::MatcherPass {
public:
OPENVINO_RTTI("RoPEFusionIOSlicing", "0");
OPENVINO_MATCHER_PASS_RTTI("RoPEFusionIOSlicing");
RoPEFusionIOSlicing();
};

class ov::pass::RoPEFusionPreprocess : public ov::pass::MatcherPass {
public:
OPENVINO_RTTI("RoPEFusionPreprocess", "0");
OPENVINO_MATCHER_PASS_RTTI("RoPEFusionPreprocess");
RoPEFusionPreprocess();
};

class ov::pass::RoPEFusionCosSinPreprocess : public ov::pass::MatcherPass {
public:
OPENVINO_RTTI("RoPEFusionCosSinPreprocess", "0");
OPENVINO_MATCHER_PASS_RTTI("RoPEFusionCosSinPreprocess");
RoPEFusionCosSinPreprocess();
};

class ov::pass::RoPEShareCosSin : public ov::pass::MatcherPass {
public:
OPENVINO_RTTI("RoPEShareCosSin", "0");
OPENVINO_MATCHER_PASS_RTTI("RoPEShareCosSin");
RoPEShareCosSin();

private:
Expand Down
Loading
Loading