You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/11/03 17:35:36 UTC

[GitHub] piiswrong closed pull request #8325: Fix typo in gluon l1loss docstring

piiswrong closed pull request #8325: Fix typo in gluon l1loss docstring
URL: https://github.com/apache/incubator-mxnet/pull/8325
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/python/mxnet/gluon/loss.py b/python/mxnet/gluon/loss.py
index 5d8c8b7d1b..614025cd35 100644
--- a/python/mxnet/gluon/loss.py
+++ b/python/mxnet/gluon/loss.py
@@ -138,7 +138,7 @@ def hybrid_forward(self, F, pred, label, sample_weight=None):
 class L1Loss(Loss):
     r"""Calculates the mean absolute error between `pred` and `label`.
 
-    .. math:: L = \frac{1}{2} \sum_i \vert {pred}_i - {label}_i \vert.
+    .. math:: L = \sum_i \vert {pred}_i - {label}_i \vert.
 
     `pred` and `label` can have arbitrary shape as long as they have the same
     number of elements.


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services