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

Commit

Permalink
Change slogdet tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ckt624 committed Aug 14, 2019
1 parent f03214e commit 46f9d54
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/python/unittest/test_numpy_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,14 +300,6 @@ def hybrid_forward(self, F, a):
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)

# test numeric gradient
a_sym = mx.sym.Variable("a").as_np_ndarray()
mx_sym = mx.sym.np.linalg.slogdet(a_sym).as_nd_ndarray()
check_numeric_gradient(mx_sym[0], [a.as_nd_ndarray()],
rtol=1e-1, atol=1e-1, dtype = dtype)
check_numeric_gradient(mx_sym[1], [a.as_nd_ndarray()],
rtol=1e-1, atol=1e-1, dtype = dtype)


@with_seed()
@use_np
Expand Down

0 comments on commit 46f9d54

Please sign in to comment.