Skip to content

Commit

Permalink
[RTTI] Add third argument to RTTI definition (#28394)
Browse files Browse the repository at this point in the history
### Details:
- Added missing parent argument RTTI definition in Core, Frontends and
Plugins.

### Tickets:
 - CVS-160238

---------

Signed-off-by: Tomasz Jankowski <[email protected]>
  • Loading branch information
t-jankowski authored Jan 13, 2025
1 parent d2b135b commit d4c2e6b
Show file tree
Hide file tree
Showing 150 changed files with 184 additions and 177 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ov::Model> model, const Params& params = Params());
bool transform(TransformationContext& context, ov::pass::pattern::Matcher& m) override;
bool canBeTransformed(const TransformationContext& context, std::shared_ptr<Node> op) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> op) const override;
bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ov::Node> layer) const override;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> op) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const noexcept override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const noexcept override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<const Node>& layer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ov::Node> layer) const override;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const noexcept override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const noexcept override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const noexcept override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const noexcept override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<const Node>& layer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const noexcept override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const noexcept override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> op) const override;
bool transform(TransformationContext& context, ov::pass::pattern::Matcher &m) override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> op) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const noexcept override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> reduce) const noexcept override;
bool canBeTransformed(const TransformationContext& context, std::shared_ptr<Node> reduce) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> reduce) const noexcept override;
bool canBeTransformed(const TransformationContext& context, std::shared_ptr<Node> reduce) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> reduce) const noexcept override;
bool canBeTransformed(const TransformationContext& context, std::shared_ptr<Node> reduce) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> reduce) const noexcept override;
bool canBeTransformed(const TransformationContext& context, std::shared_ptr<Node> reduce) const override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const noexcept override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> layer) const noexcept override;
Expand Down
Loading

0 comments on commit d4c2e6b

Please sign in to comment.