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] Fix passes rtti definitions #1588

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
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
Loading