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

fix two format problems.

parent 46ac5c5a
......@@ -543,7 +543,7 @@ struct onnx_parser
// Use a literal instruction to replace the shape since, output of
// shape operator are literals in migraphx
instruction_ref
parse_shape(const std::string&, attribute_map, std::vector<instruction_ref> args)
parse_shape(const std::string&, const attribute_map&, std::vector<instruction_ref> args)
{
if(args.size() != 1)
MIGRAPHX_THROW("Shape, operator should have 1 operand");
......
......@@ -330,7 +330,7 @@ struct cpu_gather
argument compute(context&, const shape& output_shape, std::vector<argument> args) const
{
return op.compute(output_shape, args);
return op.compute(output_shape, std::move(args));
}
};
......@@ -342,7 +342,7 @@ struct cpu_gather_torch
argument compute(context&, const shape& output_shape, std::vector<argument> args) const
{
return op.compute(output_shape, args);
return op.compute(output_shape, std::move(args));
}
};
......
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