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

Commit

Permalink
got rid of fixed seed for test_optimizer/test_operator_gpu.test_ftml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Aug 3, 2018
1 parent 1bd9356 commit fd8783a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/python/unittest/test_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def update(self, index, weight, grad, state):
prev_v[:] = v_t
prev_z[:] = z_t

@with_seed(0)
@with_seed()
def test_ftml():
opt1 = PyFTML
opt2 = mx.optimizer.FTML
Expand All @@ -534,7 +534,7 @@ def test_ftml():
kwarg.update(cg_option)
kwarg.update(rg_option)
kwarg.update(wd_option)
compare_optimizer(opt1(**kwarg), opt2(**kwarg), shape, dtype)
compare_optimizer(opt1(**kwarg), opt2(**kwarg), shape, dtype, rtol=1e-3, atol=1e-4)


# ADAM
Expand Down

0 comments on commit fd8783a

Please sign in to comment.