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

clang format

parent 32815c2e
...@@ -544,9 +544,9 @@ struct onnx_parser ...@@ -544,9 +544,9 @@ struct onnx_parser
attribute_map attributes, attribute_map attributes,
const std::vector<instruction_ref>&) const std::vector<instruction_ref>&)
{ {
literal v = parse_value(attributes.at("value")); literal v = parse_value(attributes.at("value"));
// return empty literal // return empty literal
if (v.get_shape().elements() == 0) if(v.get_shape().elements() == 0)
{ {
return prog.add_literal(literal{}); return prog.add_literal(literal{});
} }
...@@ -938,7 +938,7 @@ struct onnx_parser ...@@ -938,7 +938,7 @@ struct onnx_parser
{ {
migraphx::shape s; migraphx::shape s;
// empty input tensor, output is a scalar // empty input tensor, output is a scalar
if (args[0]->get_shape().elements() == 0) if(args[0]->get_shape().elements() == 0)
{ {
s = migraphx::shape{type, {1}, {0}}; s = migraphx::shape{type, {1}, {0}};
} }
...@@ -970,9 +970,9 @@ struct onnx_parser ...@@ -970,9 +970,9 @@ struct onnx_parser
instruction_ref instruction_ref
parse_expand(const std::string&, attribute_map, std::vector<instruction_ref> args) parse_expand(const std::string&, attribute_map, std::vector<instruction_ref> args)
{ {
auto in_lens = args[0]->get_shape().lens(); auto in_lens = args[0]->get_shape().lens();
migraphx::argument arg_s = args[1]->eval(); migraphx::argument arg_s = args[1]->eval();
if (arg_s.empty()) if(arg_s.empty())
{ {
MIGRAPHX_THROW("Parse Expand: cannot handle dynamic shape as input"); MIGRAPHX_THROW("Parse Expand: cannot handle dynamic shape as input");
} }
......
...@@ -8,7 +8,7 @@ namespace device { ...@@ -8,7 +8,7 @@ namespace device {
void reduce_sum(hipStream_t stream, const argument& result, const argument& arg) void reduce_sum(hipStream_t stream, const argument& result, const argument& arg)
{ {
reduce(stream, result, arg, sum{}, 0, id{}, id{}); reduce(stream, result, arg, sum{}, 0, id{}, id{});
} }
......
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