Commit 354b04bc authored by Paul's avatar Paul
Browse files

Pass by const ref

parent e8e7135d
...@@ -350,9 +350,9 @@ struct cpu_op ...@@ -350,9 +350,9 @@ struct cpu_op
operation op; operation op;
std::string name() const { return "cpu::" + op.name(); } std::string name() const { return "cpu::" + op.name(); }
shape compute_shape(const std::vector<shape>& inputs) const { return op.compute_shape(inputs); } shape compute_shape(const std::vector<shape>& inputs) const { return op.compute_shape(inputs); }
argument compute(context&, const shape& output_shape, std::vector<argument> args) const argument compute(context&, const shape& output_shape, const std::vector<argument>& args) const
{ {
return op.compute(output_shape, std::move(args)); return op.compute(output_shape, args);
} }
friend bool operator==(const cpu_op& x, const cpu_op& y) { return x.op == y.op; } friend bool operator==(const cpu_op& x, const cpu_op& y) { return x.op == y.op; }
friend bool operator==(const cpu_op& x, const operation& y) friend bool operator==(const cpu_op& x, const operation& y)
......
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