Commit f00002d3 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent fd0f647e
...@@ -38,10 +38,10 @@ struct binary : op_name<Derived> ...@@ -38,10 +38,10 @@ struct binary : op_name<Derived>
argument std_arg1{std_shape, args[1].data()}; argument std_arg1{std_shape, args[1].data()};
visit_all(std_result, std_arg0, std_arg1)([&](auto output, auto input1, auto input2) { visit_all(std_result, std_arg0, std_arg1)([&](auto output, auto input1, auto input2) {
std::transform(input1.begin(), std::transform(input1.begin(),
input1.end(), input1.end(),
input2.begin(), input2.begin(),
output.begin(), output.begin(),
static_cast<const Derived&>(*this).apply()); static_cast<const Derived&>(*this).apply());
}); });
} }
else else
......
...@@ -36,10 +36,10 @@ struct unary : op_name<Derived> ...@@ -36,10 +36,10 @@ struct unary : op_name<Derived>
argument arg_out{std_out_shape, result.data()}; argument arg_out{std_out_shape, result.data()};
arg_out.visit([&](auto output) { arg_out.visit([&](auto output) {
arg_in.visit([&](auto input) { arg_in.visit([&](auto input) {
std::transform(input.begin(), std::transform(input.begin(),
input.end(), input.end(),
output.begin(), output.begin(),
static_cast<const Derived&>(*this).apply()); static_cast<const Derived&>(*this).apply());
}); });
}); });
......
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