Skip to content

Commit

Permalink
support L2Norm backward for GPU. (apache#10874)
Browse files Browse the repository at this point in the history
* support gpu.

* Fix.
  • Loading branch information
zheng-da authored and szha committed May 13, 2018
1 parent ce57b58 commit 8b53a3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/operator/tensor/broadcast_reduce_op_value.cu
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,9 @@ NNVM_REGISTER_OP(norm)
.set_attr<FCompute>("FCompute<gpu>", L2NormCompute<gpu>)
.set_attr<FComputeEx>("FComputeEx<gpu>", L2NormComputeEx<gpu>);

NNVM_REGISTER_OP(_backward_norm)
.set_attr<FCompute>("FCompute<gpu>", L2NormGradCompute<gpu>)
.set_attr<FComputeEx>("FComputeEx<gpu>", L2NormGradComputeEx<gpu>);

} // namespace op
} // namespace mxnet

0 comments on commit 8b53a3d

Please sign in to comment.