Skip to content

Commit 19091b3

Browse files
committed
Minor changes: name for the always true predicate; wrap_type -- no need to introduce uselessattr predicate
Signed-off-by: Evgeniia Nugmanova <evgeniia.nugmanova@intel.com>
1 parent 540a560 commit 19091b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/include/openvino/pass/pattern/op/wrap_type.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ std::shared_ptr<Node> wrap_type(const OutputVector& inputs, const Attributes& at
8080

8181
template <class... Args>
8282
std::shared_ptr<Node> wrap_type(const std::initializer_list<Output<Node>>& inputs = {}, const Attributes& attrs = {}) {
83-
return wrap_type<Args...>(OutputVector(inputs), attrs_match(attrs));
83+
return wrap_type<Args...>(OutputVector(inputs), attrs);
8484
}
8585

8686
template <class... Args,

src/core/src/pattern/op/predicate.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ constexpr bool symbol_true_predicate(pass::pattern::PatternSymbolMap&, const Out
7070
}
7171
} // namespace
7272

73-
Predicate::Predicate() : m_pred(symbol_true_predicate) {}
73+
Predicate::Predicate() : m_name("always_true"), m_pred(symbol_true_predicate) {}
7474
Predicate::Predicate(std::nullptr_t) : Predicate() {}
7575

7676
bool Predicate::operator()(pass::pattern::PatternSymbolMap& m, const Output<Node>& output) const {

0 commit comments

Comments
 (0)