Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Add std::move
Browse files Browse the repository at this point in the history
  • Loading branch information
larroy committed Apr 17, 2019
1 parent b7ea69e commit 287c7e3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/operator/tensor/broadcast_reduce_op_value.cc
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,13 @@ NNVM_REGISTER_OP(broadcast_like)
.set_attr<nnvm::FGradient>("FGradient",
[](const nnvm::NodePtr& n,
const std::vector<nnvm::NodeEntry>& ograds) {
if (CheckGradAllZero(ograds)) return MakeZeroGradNodes(n, ograds);
if (CheckGradAllZero(ograds))
return MakeZeroGradNodes(n, ograds);
std::vector<nnvm::NodeEntry> lhs = MakeNonlossGradNode("_broadcast_backward", n, ograds, {},
{{"keepdims", "true"}});
{{"keepdims", "true"}});
auto ng = MakeNode("zeros_like", n->attrs.name + "_rhs_backward",
{n->inputs[1]}, nullptr, &n);
lhs.emplace_back(ng, 0, 0);
lhs.emplace_back(std::move(ng));
return lhs;
})
.add_argument("lhs", "NDArray-or-Symbol", "First input.")
Expand Down

0 comments on commit 287c7e3

Please sign in to comment.