Skip to content

Commit

Permalink
[RTTI] Fix passes rtti definitions (#1588)
Browse files Browse the repository at this point in the history
Follow up of #1577

---------

Signed-off-by: Tomasz Jankowski <[email protected]>
  • Loading branch information
t-jankowski authored Jan 17, 2025
1 parent 037b1c8 commit ca6f5cb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/cpp/src/llm_pipeline_static.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ namespace {
namespace opp = ov::pass::pattern;
class TransposeValueTensors : public ov::pass::MatcherPass {
public:
OPENVINO_MATCHER_PASS_RTTI("TransposeValueTensors");
struct Context {
std::vector<std::shared_ptr<ov::opset13::Parameter>> new_params;
std::vector<std::shared_ptr<ov::opset13::Parameter>> old_params;
Expand Down Expand Up @@ -95,7 +96,7 @@ class TransposeValueTensors : public ov::pass::MatcherPass {

class ScaledDotProductAttentionDecomposition : public ov::pass::MatcherPass {
public:
OPENVINO_RTTI("ScaledDotProductAttentionDecomposition", "0");
OPENVINO_MATCHER_PASS_RTTI("ScaledDotProductAttentionDecomposition");
ScaledDotProductAttentionDecomposition() {
auto pattern_node = ov::pass::pattern::wrap_type<ov::op::v13::ScaledDotProductAttention>();

Expand Down
6 changes: 3 additions & 3 deletions src/cpp/src/lora_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ struct LoRAWeightStateGetter {
class LoRATransformBase : public ov::pass::MatcherPass {
public:

OPENVINO_RTTI("LoRATransformBase");
OPENVINO_MATCHER_PASS_RTTI("LoRATransformBase");

LoRATransformBase(const LoRAWeightByNodeGetter& lora_weight_getter) {
register_matcher(
Expand Down Expand Up @@ -693,7 +693,7 @@ class LoRAFuseTransform : public LoRATransformBase {

public:

OPENVINO_RTTI("LoRAFuseTransform");
OPENVINO_RTTI("LoRAFuseTransform", "genai", LoRATransformBase);

LoRAFuseTransform(const LoRAWeightByNodeGetter& lora_weight_getter, const std::string& device_for_fusion = "CPU") :
LoRATransformBase(lora_weight_getter),
Expand Down Expand Up @@ -763,7 +763,7 @@ class LoRAFuseTransform : public LoRATransformBase {
class LoRASeparateTransform : public LoRATransformBase {
public:

OPENVINO_RTTI("LoRASeparateTransform");
OPENVINO_RTTI("LoRASeparateTransform", "genai", LoRATransformBase);

LoRASeparateTransform(const LoRAWeightByNodeGetter& lora_getter) : LoRATransformBase(lora_getter) {}

Expand Down
2 changes: 1 addition & 1 deletion src/cpp/src/whisper_pipeline_static.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ void add_attention_mask_input(std::shared_ptr<ov::Model> model) {
using namespace ov::op;
class AttentionMaskInput : public ov::pass::MatcherPass {
public:
OPENVINO_RTTI("AttentionMaskInput");
OPENVINO_MATCHER_PASS_RTTI("AttentionMaskInput");

AttentionMaskInput(std::shared_ptr<ov::Model> model) {
auto range = wrap_type<v4::Range>();
Expand Down

0 comments on commit ca6f5cb

Please sign in to comment.