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/28 08:18:03 UTC

[GitHub] [incubator-mxnet] sxjscience opened a new issue #16655: Clear error message for symbolic API

sxjscience opened a new issue #16655: Clear error message for symbolic API
URL: https://github.com/apache/incubator-mxnet/issues/16655
 
 
   ```python
   import mxnet as mx
   mx.npx.set_np()
   a = mx.np.ones((10,10))
   a.reshape(shape=(-1,))
   ```
   Error message:
   ```
   ~/mxnet/python/mxnet/numpy/multiarray.py in reshape(self, *args, **kwargs)
      1141             if 'order' not in kwargs:
      1142                 raise TypeError('{} is an invalid keyword argument for this function'
   -> 1143                                 .format(kwargs.keys()[0]))
      1144             order = kwargs.pop('order', 'C')
      1145             if order != 'C':
   ```
   The cause is because the kwargs is not supported. However, the error message is not user-friendly

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