Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[Numpy] Clear error message #16655

Closed
sxjscience opened this issue Oct 28, 2019 · 2 comments
Closed

[Numpy] Clear error message #16655

sxjscience opened this issue Oct 28, 2019 · 2 comments

Comments

@sxjscience
Copy link
Member

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

@sxjscience sxjscience changed the title Clear error message for symbolic API [Numpy] Clear error message Oct 28, 2019
@yzhliu yzhliu added the v2.0 label Apr 29, 2020
@yzhliu
Copy link
Member

yzhliu commented Apr 30, 2020

Assignee: @jinboci

@yzhliu yzhliu added the WIP label Apr 30, 2020
jinboci pushed a commit to jinboci/incubator-mxnet that referenced this issue May 7, 2020
@jinboci jinboci mentioned this issue May 7, 2020
7 tasks
marcoabreu pushed a commit that referenced this issue May 7, 2020
* fix the error message of reshape()

* Fixing issue #16655 reshape() error message

Co-authored-by: Ubuntu <ubuntu@ip-172-31-34-249.ap-northeast-1.compute.internal>
@yzhliu
Copy link
Member

yzhliu commented May 9, 2020

fixed by #18257

@yzhliu yzhliu closed this as completed May 9, 2020
AntiZpvoh pushed a commit to AntiZpvoh/incubator-mxnet that referenced this issue Jul 6, 2020
* fix the error message of reshape()

* Fixing issue apache#16655 reshape() error message

Co-authored-by: Ubuntu <ubuntu@ip-172-31-34-249.ap-northeast-1.compute.internal>
yzhliu pushed a commit that referenced this issue Aug 22, 2020
* fix the error message of reshape()

* Fixing issue #16655 reshape() error message

* test pr

* fixing #17840

* fixing issue #17840

* Update compile.py

* Update ndarray.py

* Update c_api.cc

* Update op_module.cc

* Update op_module.h

* Update op_module.h

* Update op_module.h

* fixing tvmgpu issue & not restoring tvmop checks

Co-authored-by: Ubuntu <ubuntu@ip-172-31-34-249.ap-northeast-1.compute.internal>
Co-authored-by: Ubuntu <ubuntu@ip-172-31-37-194.ap-northeast-1.compute.internal>
Co-authored-by: jinboci <cijinbo@outlook.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants