"cacheflow/git@developer.sourcefind.cn:xdb4_94051/vllm.git" did not exist on "c3442c1f6fabe54adb82d2d676920c5f31b9834e"
Commit 5347c679 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 6439e3f1
......@@ -40,7 +40,7 @@ struct multibroadcast
}
if(input.lens().size() > output_lens.size())
{
{
MIGRAPHX_THROW("MULTIBROADCAST: inputs dimensions should <= output size");
}
......@@ -49,9 +49,9 @@ struct multibroadcast
{
if(output_lens[i + offset] != input.lens()[i] and input.lens()[i] != 1)
{
MIGRAPHX_THROW("MULTIBROADCAST: input shape {" +
to_string_range(input.lens()) + "} cannot be broadcasted to {"
+ to_string_range(output_lens) + "}!");
MIGRAPHX_THROW("MULTIBROADCAST: input shape {" + to_string_range(input.lens()) +
"} cannot be broadcasted to {" + to_string_range(output_lens) +
"}!");
}
}
......
......@@ -183,13 +183,14 @@ struct onnx_parser
s1.begin() + offset,
out_lens.begin() + offset,
[&](auto a, auto b) {
if (a != b and a != 1 and b != 1)
if(a != b and a != 1 and b != 1)
{
MIGRAPHX_THROW("COMPUTE_BROADCASTLEN: shape {" +
to_string_range(s0) + "} and {" + to_string_range(s1) + "} mismatch!");
}
return std::max(a, b);
});
MIGRAPHX_THROW("COMPUTE_BROADCASTLEN: shape {" +
to_string_range(s0) + "} and {" +
to_string_range(s1) + "} mismatch!");
}
return std::max(a, b);
});
return out_lens;
}
......
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