Commit 7dbc89d3 authored by Paul's avatar Paul
Browse files

Formatting

parent a4a654c9
...@@ -313,10 +313,8 @@ auto args(Ms... ms) ...@@ -313,10 +313,8 @@ auto args(Ms... ms)
auto either_arg(std::size_t i, std::size_t j) auto either_arg(std::size_t i, std::size_t j)
{ {
return [=](auto m1, auto m2) { return [=](auto m1, auto m2) {
return match::any_of( return match::any_of(match::all_of(arg(i)(m1), arg(j)(m2)),
match::all_of(arg(i)(m1), arg(j)(m2)), match::all_of(arg(j)(m1), arg(i)(m2)));
match::all_of(arg(j)(m1), arg(i)(m2))
);
}; };
} }
......
...@@ -168,9 +168,7 @@ struct match_conv_bias ...@@ -168,9 +168,7 @@ struct match_conv_bias
auto matcher() const auto matcher() const
{ {
return match::name("gpu::add")(match::either_arg(0, 1)( return match::name("gpu::add")(match::either_arg(0, 1)(
match::broadcast_shape().bind("bias"), match::broadcast_shape().bind("bias"), match::name("gpu::convolution").bind("conv")));
match::name("gpu::convolution").bind("conv")
));
} }
void apply(program& p, match::matcher_result r) const void apply(program& p, match::matcher_result r) const
......
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