Commit 05f60267 authored by Paul's avatar Paul
Browse files

Formatting

parent 947ede80
...@@ -7,7 +7,8 @@ namespace device { ...@@ -7,7 +7,8 @@ namespace device {
void add_relu(argument result, argument arg1, argument arg2) void add_relu(argument result, argument arg1, argument arg2)
{ {
nary_standard(std::move(result), std::move(arg1), std::move(arg2))([](auto x, auto y) { return max(0, x + y); }); nary_standard(std::move(result), std::move(arg1), std::move(arg2))(
[](auto x, auto y) { return max(0, x + y); });
} }
} // namespace device } // namespace device
......
...@@ -42,15 +42,12 @@ auto nary_nonstandard_impl(F f, argument result, Arguments... args) ...@@ -42,15 +42,12 @@ auto nary_nonstandard_impl(F f, argument result, Arguments... args)
}); });
}); });
}); });
} }
template <class... Arguments> template <class... Arguments>
auto nary_nonstandard(argument result, Arguments... args) auto nary_nonstandard(argument result, Arguments... args)
{ {
return [=](auto f) { return [=](auto f) { return nary_nonstandard_impl(f, result, args...); };
return nary_nonstandard_impl(f, result, args...);
};
} }
template <class... Arguments> template <class... Arguments>
......
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