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:
same as above
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services