You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ha...@apache.org on 2017/10/08 22:34:06 UTC
[incubator-mxnet] 01/01: Update elemwise_unary_op.cc
This is an automated email from the ASF dual-hosted git repository.
haibin pushed a commit to branch eric-haibin-lin-patch-1
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
commit 0cb95e3d799977752d816c3dea8dbd4ecce0909c
Author: Haibin Lin <li...@gmail.com>
AuthorDate: Sun Oct 8 15:34:02 2017 -0700
Update elemwise_unary_op.cc
---
src/operator/tensor/elemwise_unary_op.cc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/operator/tensor/elemwise_unary_op.cc b/src/operator/tensor/elemwise_unary_op.cc
index 8302841..4cdfce2 100644
--- a/src/operator/tensor/elemwise_unary_op.cc
+++ b/src/operator/tensor/elemwise_unary_op.cc
@@ -113,7 +113,7 @@ Example::
a = Variable('a')
b = Variable('b')
b_stop_grad = stop_gradient(3 * b)
- loss = MakeLoss(b_stop_grad + a)
+ loss = make_loss(b_stop_grad + a)
executor = loss.simple_bind(ctx=cpu(), a=(1,2), b=(1,2))
executor.forward(is_train=True, a=v1, b=v2)
@@ -138,7 +138,6 @@ Example::
MXNET_OPERATOR_REGISTER_UNARY(make_loss)
MXNET_ADD_SPARSE_OP_ALIAS(make_loss)
.describe(R"code(Stops gradient computation.
-.. note:: ``make_loss`` is deprecated, use ``MakeLoss``.
The storage type of ``make_loss`` output depends upon the input storage type:
--
To stop receiving notification emails like this one, please contact
"commits@mxnet.apache.org" <co...@mxnet.apache.org>.