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/04/21 08:04:46 UTC

[GitHub] [incubator-mxnet] sxjscience opened a new issue #18123: [Numpy] Bug of `arr.sum()` in latest master

sxjscience opened a new issue #18123:
URL: https://github.com/apache/incubator-mxnet/issues/18123


   Reproducible example:
   
   ```python
   import mxnet as mx
   mx.npx.set_np() 
   a = mx.np.ones((10, 10)) 
   a.sum() 
   ```
   
   Error
   ```
   ---------------------------------------------------------------------------
   AttributeError                            Traceback (most recent call last)
   <ipython-input-1-adde00e335fe> in <module>
         2 mx.npx.set_np()
         3 a = mx.np.ones((10, 10))
   ----> 4 a.sum()
   
   ~/mxnet/python/mxnet/numpy/multiarray.py in sum(self, axis, dtype, out, keepdims)
      1781     def sum(self, axis=None, dtype=None, out=None, keepdims=False):  # pylint: disable=arguments-differ
      1782         """Return the sum of the array elements over the given axis."""
   -> 1783         return _mx_np_op.sum(self, axis=axis, dtype=dtype, out=out, keepdims=keepdims)
      1784 
      1785     def nansum(self, *args, **kwargs):
   
   AttributeError: module 'mxnet.numpy._op' has no attribute 'sum'
   ```


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



[GitHub] [incubator-mxnet] leezu commented on issue #18123: [Numpy] Bug of `arr.sum()` in latest master

Posted by GitBox <gi...@apache.org>.
leezu commented on issue #18123:
URL: https://github.com/apache/incubator-mxnet/issues/18123#issuecomment-618802172


   Fixed by https://github.com/apache/incubator-mxnet/pull/18129


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