Commit f958d258 authored by Khalique's avatar Khalique
Browse files

fix cppcheck errors

parent 4dbbe114
......@@ -43,10 +43,7 @@ struct tf_parser
copy(attrs.begin(), attrs.end(), std::back_inserter(axes));
if(is_nhwc)
{
for(size_t& axis : axes)
{
axis = parse_axis(axis);
}
std::transform(axes.begin(), axes.end(), axes.begin(), [&](size_t axis) { return parse_axis(axis); });
}
return axes;
}
......@@ -396,7 +393,7 @@ struct tf_parser
}
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;
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