Skip to content

Commit

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

* Fixing issue apache#16655 reshape() error message

Co-authored-by: Ubuntu <[email protected]>
  • Loading branch information
2 people authored and AntiZpvoh committed Jul 6, 2020
1 parent 340a401 commit 9971027
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 @@ -1457,8 +1457,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 9971027

Please sign in to comment.