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 2019/10/07 03:17:37 UTC

[GitHub] [incubator-mxnet] szha commented on a change in pull request #15857: [Numpy] Added operator logaddexp; added support for zero-size tensor in BinaryBroadcastBackwardUseIn

szha commented on a change in pull request #15857: [Numpy] Added operator logaddexp; added support for zero-size tensor in BinaryBroadcastBackwardUseIn 
URL: https://github.com/apache/incubator-mxnet/pull/15857#discussion_r331834466
 
 

 ##########
 File path: python/mxnet/ndarray/numpy/_op.py
 ##########
 @@ -2537,3 +2537,51 @@ def ravel(x, order='C'):
         return _npi.reshape(x, -1)
     else:
         raise TypeError('type {} not supported'.format(str(type(x))))
+
+
+@set_module('mxnet.ndarray.numpy')
+def logaddexp(x1, x2, out=None):
+    """Logarithm of the sum of exponentiations of the inputs.
+    logaddexp(x1, x2, out=None)
+     Calculates ``log(exp(x1) + exp(x2))``. This function is useful in
 
 Review comment:
   new line above. and fix indentation

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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