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

Commit 88effef

Browse files
author
Hao Jin
committed
address code review: change atol
1 parent 8a7ccb5 commit 88effef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/python/unittest/test_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2419,7 +2419,7 @@ def check_l2_normalization(in_shape, mode, dtype, norm_eps=1e-10):
24192419
exe = out.simple_bind(ctx=ctx, data=in_data.shape)
24202420
output = exe.forward(is_train=True, data=in_data)
24212421
# compare numpy + mxnet
2422-
assert_almost_equal(exe.outputs[0].asnumpy(), np_out, rtol=1e-2 if dtype is 'float16' else 1e-5, atol=1e-20)
2422+
assert_almost_equal(exe.outputs[0].asnumpy(), np_out, rtol=1e-2 if dtype is 'float16' else 1e-5, atol=1e-5)
24232423
# check gradient
24242424
check_numeric_gradient(out, [in_data], numeric_eps=1e-3, rtol=1e-2, atol=1e-3)
24252425

0 commit comments

Comments
 (0)