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

Commit

Permalink
[numpy] fix argsort typo (#17150)
Browse files Browse the repository at this point in the history
* return

* fix symbol
  • Loading branch information
Yiyan66 authored and haojin2 committed Dec 26, 2019
1 parent 8f9ae1c commit e15c778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/mxnet/numpy/multiarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@ def argsort(self, axis=-1, kind=None, order=None): # pylint: disable=arguments-
The arguments are the same as for :py:func:`argsort`, with
this array as data.
"""
raise argsort(self, axis=axis, kind=kind, order=order)
return argsort(self, axis=axis, kind=kind, order=order)

def argmax_channel(self, *args, **kwargs):
"""Convenience fluent method for :py:func:`argmax_channel`.
Expand Down
2 changes: 1 addition & 1 deletion python/mxnet/symbol/numpy/_symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def argsort(self, axis=-1, kind=None, order=None): # pylint: disable=arguments-
The arguments are the same as for :py:func:`argsort`, with
this array as data.
"""
raise argsort(self, axis=axis, kind=kind, order=order)
return argsort(self, axis=axis, kind=kind, order=order)

def argmax_channel(self, *args, **kwargs):
"""Convenience fluent method for :py:func:`argmax_channel`.
Expand Down

0 comments on commit e15c778

Please sign in to comment.