"...targets/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "90665ffd90957ee7be18ba32b2dd75f03a02deb6"
Commit ce23285b authored by Paul's avatar Paul
Browse files

Formatting

parent e77913c5
......@@ -481,11 +481,16 @@ struct cpu_binary
{
argument result{output_shape};
visit_all(result, args[0], args[1])([&](auto output, auto input1, auto input2) {
if(input1.get_shape().packed() and input2.get_shape().packed()) {
std::transform(input1.begin(), input1.end(), input2.begin(), output.begin(), op.fcn());
} else {
if(input1.get_shape().packed() and input2.get_shape().packed())
{
std::transform(
input1.begin(), input1.end(), input2.begin(), output.begin(), op.fcn());
}
else
{
shape_for_each(output.get_shape(), [&](const auto& idx) {
output(idx.begin(), idx.end()) = op.fcn()(input1(idx.begin(), idx.end()), input2(idx.begin(), idx.end()));
output(idx.begin(), idx.end()) =
op.fcn()(input1(idx.begin(), idx.end()), input2(idx.begin(), idx.end()));
});
}
});
......
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