-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Move pass pattern to ov #7255
Move pass pattern to ov #7255
Conversation
63daf37
to
755212d
Compare
494091e
to
70ecf71
Compare
} | ||
|
||
OPENVINO_DEPRECATED("Use MatcherPass instead") | ||
void add_matcher(const std::shared_ptr<pattern::Matcher>& m, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove it finally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be backward incompatible for our old users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why? it's deprecated for several releases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, yes, it is a valid comment. So I propose to remove these deprecated methods in the separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, let's merge then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is still used by some OV components actually
using ov::pass::BackwardGraphRewrite; | ||
using ov::pass::GraphRewrite; | ||
using ov::pass::MatcherPass; | ||
using ov::pass::RecurrentGraphRewrite; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep it only in legacy API.
namespace pass { | ||
enum class PassProperty : uint32_t { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep pass property in legacy API
using ov::pass::PassProperty; | ||
using ov::pass::PassPropertyMask; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep in legacy
}; | ||
using ov::pass::pattern::Matcher; | ||
using ov::pass::pattern::MatcherState; | ||
using ov::pass::pattern::RecurrentMatcher; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep it in legacy API
enum class FusionType : uint32_t { | ||
//`DIFFERENTIABLE_FUSIONS` produce ops that support autodiff | ||
// i.e. implement `generate_adjoints` | ||
DIFFERENTIABLE_FUSIONS = 0x1, | ||
REGULAR_FUSIONS = 0x2, | ||
//`FOP_FUSIONS` produce ops in the FusedOps category that might | ||
// not be supported by all backends | ||
FOP_FUSIONS = 0x4, | ||
ALL_FUSIONS = 0xFFFFFFFF | ||
}; | ||
using FusionTypeMask = ngraph::EnumMask<FusionType>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's remove this
* Moved ngraph::Node to ov namespace * Fixed code style * Fixed VPU * Fixed GNA * Fixed tests * Added aliases for backward compatibility * Fix clDNN * Try to fix build * Fixed comment * Renamed RTTI macros * Add new headers * Fixed ngraph build * Fixed unit tests * Try to fix Serialize
PR depends on #7240