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

[Numpy] Clear error message #16655

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions