From e61f33622fe08153b1b0605de6facfb5a6db241b Mon Sep 17 00:00:00 2001 From: reminisce Date: Tue, 24 Sep 2019 16:16:30 -0700 Subject: [PATCH] Fix --- python/mxnet/_numpy_op_doc.py | 4 ++-- tests/python/unittest/test_numpy_op.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/mxnet/_numpy_op_doc.py b/python/mxnet/_numpy_op_doc.py index 5fa58689a43c..f168d56d4983 100644 --- a/python/mxnet/_numpy_op_doc.py +++ b/python/mxnet/_numpy_op_doc.py @@ -20,7 +20,7 @@ """Doc placeholder for numpy ops with prefix _np.""" -def _np_linalg_det(a): +def _np__linalg_det(a): """ det(a) @@ -69,7 +69,7 @@ def _np_linalg_det(a): pass -def _np_linalg_slogdet(a): +def _np__linalg_slogdet(a): """ slogdet(a) diff --git a/tests/python/unittest/test_numpy_op.py b/tests/python/unittest/test_numpy_op.py index b3ebe8dc86ad..4a51b5ab7c19 100644 --- a/tests/python/unittest/test_numpy_op.py +++ b/tests/python/unittest/test_numpy_op.py @@ -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