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

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
reminisce committed Sep 24, 2019
1 parent d792323 commit e61f336
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/mxnet/_numpy_op_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"""Doc placeholder for numpy ops with prefix _np."""


def _np_linalg_det(a):
def _np__linalg_det(a):
"""
det(a)
Expand Down Expand Up @@ -69,7 +69,7 @@ def _np_linalg_det(a):
pass


def _np_linalg_slogdet(a):
def _np__linalg_slogdet(a):
"""
slogdet(a)
Expand Down
4 changes: 2 additions & 2 deletions tests/python/unittest/test_numpy_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ def hybrid_forward(self, F, a):
mx_out = test_slogdet(a)
assert mx_out[0].shape == np_out[0].shape
assert mx_out[1].shape == np_out[1].shape
assert_almost_equal(mx_out[0].asnumpy(), np_out[0], rtol = 1e-1, atol = 1e-1)
assert_almost_equal(mx_out[1].asnumpy(), np_out[1], rtol = 1e-1, atol = 1e-1)
assert_almost_equal(mx_out[0].asnumpy(), np_out[0], rtol=1e-1, atol=1e-1)
assert_almost_equal(mx_out[1].asnumpy(), np_out[1], rtol=1e-1, atol=1e-1)
mx_out[1].backward()

# Test imperative once again
Expand Down

0 comments on commit e61f336

Please sign in to comment.