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 2020/03/30 12:28:54 UTC

[GitHub] [incubator-mxnet] xidulu opened a new issue #17936: [Numpy] npx.gammaln does not handle type correctly

xidulu opened a new issue #17936: [Numpy] npx.gammaln does not handle type correctly 
URL: https://github.com/apache/incubator-mxnet/issues/17936
 
 
   ```python
   >>> import scipy.special as ss
   >>> import numpy as np
   >>> np.array([1,2,3]).dtype
   dtype('int64')
   >>> ss.gammaln(np.array([1,2,3]))
   array([0.        , 0.        , 0.69314718])
   >>> from mxnet import np, npx
   >>> c = np.array([1,2,3]).astype('int32')
   >>> npx.gammaln(c)
   array([0, 0, 0], dtype=int32)
   ```

----------------------------------------------------------------
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