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/op_convertions #28150

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};

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

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace pass {
*/
class TRANSFORMATIONS_API ConvertEmbeddingBagPacked15ToEmbeddingBagPackedSum3 : public MatcherPass {
public:
OPENVINO_RTTI("ConvertEmbeddingBagPacked15ToEmbeddingBagPackedSum3", "0");
OPENVINO_MATCHER_PASS_RTTI("ConvertEmbeddingBagPacked15ToEmbeddingBagPackedSum3");
ConvertEmbeddingBagPacked15ToEmbeddingBagPackedSum3();
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ class TRANSFORMATIONS_API ConvertFullyConnectedToFullyConnectedCompressed;

class ov::pass::ConvertFullyConnectedToFullyConnectedCompressed : public ov::pass::MatcherPass {
public:
OPENVINO_MATCHER_PASS_RTTI("ConvertFullyConnectedToFullyConnectedCompressed");

using SupportsPredicate =
std::function<bool(const std::shared_ptr<ov::op::internal::FullyConnected>&, size_t, size_t, size_t)>;

OPENVINO_RTTI("ConvertFullyConnectedToFullyConnectedCompressed", "0");
ConvertFullyConnectedToFullyConnectedCompressed(const std::vector<ov::element::Type>& supported_activation_types,
const std::vector<ov::element::Type>& supported_weights_types,
SupportsPredicate supports_config = nullptr,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ class TRANSFORMATIONS_API ConvertFCToFCQuantizedLegacy;

class ov::pass::ConvertFCToFCQuantizedLegacy : public ov::pass::MatcherPass {
public:
OPENVINO_RTTI("ConvertFullyConnectedToFullyConnectedQuantized", "0");
OPENVINO_MATCHER_PASS_RTTI("ConvertFCToFCQuantizedLegacy");
ConvertFCToFCQuantizedLegacy();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};

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

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

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

Expand All @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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("ConvertMulticlassNmsToMulticlassNmsIE");
ConvertMulticlassNmsToMulticlassNmsIE(bool force_i32_output_type = true);
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace pass {
*/
class TRANSFORMATIONS_API ConvertPad12ToPad1 : public MatcherPass {
public:
OPENVINO_RTTI("ConvertPad12ToPad1", "0");
OPENVINO_MATCHER_PASS_RTTI("ConvertPad12ToPad1");
ConvertPad12ToPad1();
};

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