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

Commit

Permalink
* fix - python interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Apr 11, 2020
1 parent 7a619d3 commit 960c47e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/mxnet/numpy/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from . import fallback_linalg

__all__ = ['norm', 'svd', 'cholesky', 'qr', 'inv', 'det', 'slogdet', 'solve', 'tensorinv', 'tensorsolve',
'pinv', 'eigvals', 'eig', 'eigvalsh', 'eigh', 'lstsq']
'pinv', 'eigvals', 'eig', 'eigvalsh', 'eigh', 'lstsq', 'matrix_rank']
__all__ += fallback_linalg.__all__


Expand Down
6 changes: 3 additions & 3 deletions python/mxnet/symbol/numpy/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def matrix_rank(M, tol=None, hermitian=False):
greater than `tol`.
Parameters
M : {(M,), (..., M, N)} symbol
M : {(M,), (..., M, N)} _Symbol
Input vector or stack of matrices.
tol : (...) symbol, float, optional
tol : (...) _Symbol, float, optional
Threshold below which SVD values are considered zero. If `tol` is
None, and ``S`` is an array with singular values for `M`, and
``eps`` is the epsilon value for datatype of ``S``, then `tol` is
Expand All @@ -48,7 +48,7 @@ def matrix_rank(M, tol=None, hermitian=False):
Returns
-------
rank : (...) symbol
rank : (...) _Symbol
Rank of M.
"""
finfo_eps_32 = _np.finfo(_np.float32).eps
Expand Down

0 comments on commit 960c47e

Please sign in to comment.