"vscode:/vscode.git/clone" did not exist on "63d84bffc15206899263a41e2bcba154d454908d"
Commit f958d258 authored by Khalique's avatar Khalique
Browse files

fix cppcheck errors

parent 4dbbe114
...@@ -43,10 +43,7 @@ struct tf_parser ...@@ -43,10 +43,7 @@ struct tf_parser
copy(attrs.begin(), attrs.end(), std::back_inserter(axes)); copy(attrs.begin(), attrs.end(), std::back_inserter(axes));
if(is_nhwc) if(is_nhwc)
{ {
for(size_t& axis : axes) std::transform(axes.begin(), axes.end(), axes.begin(), [&](size_t axis) { return parse_axis(axis); });
{
axis = parse_axis(axis);
}
} }
return axes; return axes;
} }
...@@ -396,7 +393,7 @@ struct tf_parser ...@@ -396,7 +393,7 @@ struct tf_parser
} }
instruction_ref instruction_ref
parse_squeeze(const std::string&, attribute_map attributes, std::vector<instruction_ref> args) parse_squeeze(const std::string&, const attribute_map& attributes, std::vector<instruction_ref> args)
{ {
op::squeeze op; op::squeeze op;
auto axes = parse_axes(attributes, "squeeze_dims"); auto axes = parse_axes(attributes, "squeeze_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