"docs/source/Tutorial/InstallationWin.rst" did not exist on "7b2cac912cb6d6efb4fa1c7b729624d5dc0f0d69"
Commit 8be88ffb authored by Paul's avatar Paul
Browse files

Format

parent 6ce3aefb
...@@ -51,8 +51,9 @@ auto op_lit_broadcast(std::string op, std::string x, std::string y) ...@@ -51,8 +51,9 @@ auto op_lit_broadcast(std::string op, std::string x, std::string y)
auto conv_const_weights() auto conv_const_weights()
{ {
return match::name("convolution")(match::used_once(), return match::name("convolution")(
match::args(match::none_of(match::is_constant()), match::is_constant().bind("w"))); match::used_once(),
match::args(match::none_of(match::is_constant()), match::is_constant().bind("w")));
} }
auto reduction() { return match::name_contains("reduce"); } auto reduction() { return match::name_contains("reduce"); }
...@@ -272,10 +273,11 @@ struct find_conv_add ...@@ -272,10 +273,11 @@ struct find_conv_add
auto matcher() const auto matcher() const
{ {
auto add = match::name("add")( auto add = match::name("add")(
match::either_arg(0, 1)(match::any().bind("x"), match::either_arg(0, 1)(match::any().bind("x"),
match::any_of(match::is_constant()).bind("a")), match::used_once()); match::any_of(match::is_constant()).bind("a")),
match::used_once());
return match::name("convolution")(match::used_once(), return match::name("convolution")(match::used_once(),
match::args(add, match::is_constant().bind("w"))); match::args(add, match::is_constant().bind("w")));
} }
void apply(module& m, const match::matcher_result& r) const void apply(module& m, const 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