Commit 570b1c6b authored by Paul's avatar Paul
Browse files

Formatting

parent dc354856
...@@ -57,12 +57,13 @@ function_matcher<F> make_function_matcher(F f) ...@@ -57,12 +57,13 @@ function_matcher<F> make_function_matcher(F f)
template <class M> template <class M>
auto bind_match(M m, std::string name) auto bind_match(M m, std::string name)
{ {
return make_function_matcher([=, name=std::move(name)](matcher_context& ctx, instruction_ref ins) { return make_function_matcher(
auto result = m.match(ctx, ins); [ =, name = std::move(name) ](matcher_context & ctx, instruction_ref ins) {
if(result != ctx.not_found()) auto result = m.match(ctx, ins);
ctx.instructions.emplace(name, ins); if(result != ctx.not_found())
return result; ctx.instructions.emplace(name, ins);
}); return result;
});
} }
template <class M> template <class M>
...@@ -249,7 +250,8 @@ MIGRAPH_PRED_MATCHER(standard_shape, instruction_ref ins) { return ins->get_shap ...@@ -249,7 +250,8 @@ MIGRAPH_PRED_MATCHER(standard_shape, instruction_ref ins) { return ins->get_shap
inline auto name(std::string name) inline auto name(std::string name)
{ {
return make_basic_pred_matcher([=, name=std::move(name)](instruction_ref ins) { return ins->name() == name; }); return make_basic_pred_matcher(
[ =, name = std::move(name) ](instruction_ref ins) { return ins->name() == name; });
} }
inline auto arg(std::size_t i) inline auto arg(std::size_t i)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment