Commit 42921d5e authored by Paul's avatar Paul
Browse files

Formatting

parent 2bda6735
...@@ -351,9 +351,10 @@ struct onnx_parser ...@@ -351,9 +351,10 @@ struct onnx_parser
if(node.name().empty()) if(node.name().empty())
{ {
std::string generated = "migraph_unnamed_node"; std::string generated = "migraph_unnamed_node";
return std::accumulate(node.output().begin(), node.output().end(), generated, [](auto x, auto y) { return std::accumulate(node.output().begin(),
return x + "_" + y; node.output().end(),
}); generated,
[](auto x, auto y) { return x + "_" + y; });
} }
return node.name(); return node.name();
} }
...@@ -487,7 +488,10 @@ struct onnx_parser ...@@ -487,7 +488,10 @@ struct onnx_parser
} }
std::vector<std::size_t> dims; std::vector<std::size_t> dims;
auto&& tensor_dims = t.tensor_type().shape().dim(); auto&& tensor_dims = t.tensor_type().shape().dim();
std::transform(tensor_dims.begin(), tensor_dims.end(), std::back_inserter(dims), [](auto&& d) { return d.dim_value(); }); std::transform(tensor_dims.begin(),
tensor_dims.end(),
std::back_inserter(dims),
[](auto&& d) { return d.dim_value(); });
return {shape_type, dims}; return {shape_type, dims};
} }
}; };
......
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