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

Commit

Permalink
Fixing #16655 (#18257)
Browse files Browse the repository at this point in the history
* fix the error message of reshape()

* Fixing issue #16655 reshape() error message

Co-authored-by: Ubuntu <[email protected]>
  • Loading branch information
jinboci and Ubuntu authored May 7, 2020
1 parent 353c243 commit 7f24823
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/mxnet/numpy/multiarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -1435,8 +1435,8 @@ def reshape(self, *args, **kwargs): # pylint: disable=arguments-differ
raise TypeError('function takes at most 1 keyword argument')
if len(kwargs) == 1:
if 'order' not in kwargs:
raise TypeError('{} is an invalid keyword argument for this function'
.format(kwargs.keys()[0]))
raise TypeError("'{}' is an invalid keyword argument for this function"
.format(list(kwargs.keys())[0]))
order = kwargs.pop('order', 'C')
if order != 'C':
raise NotImplementedError('only supports C-order,'
Expand Down

0 comments on commit 7f24823

Please sign in to comment.