Skip to content

Commit

Permalink
fix the error message of reshape()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed May 7, 2020
1 parent 23df47f commit 6774474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mxnet/numpy/multiarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ def reshape(self, *args, **kwargs): # pylint: disable=arguments-differ
if len(kwargs) == 1:
if 'order' not in kwargs:
raise TypeError('{} is an invalid keyword argument for this function'
.format(kwargs.keys()[0]))
.format(list(kwargs.keys())[0])) # python3.6 - TypeError: 'dict_keys' object does not support indexing
order = kwargs.pop('order', 'C')
if order != 'C':
raise NotImplementedError('only supports C-order,'
Expand Down

0 comments on commit 6774474

Please sign in to comment.