Skip to content

Commit

Permalink
[Tests] Adjust TPU test values (open-mmlab#1233)
Browse files Browse the repository at this point in the history
* [Tests] Adjust TPU test values

* slow tests

* remaining refs
  • Loading branch information
anton-l committed Nov 9, 2022
1 parent 0feb21a commit 2e980ac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_scheduler_flax.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ def test_full_loop_no_noise(self):
result_mean = jnp.mean(jnp.abs(sample))

if jax_device == "tpu":
assert abs(result_sum - 198.1542) < 1e-2
assert abs(result_sum - 198.1275) < 1e-2
assert abs(result_mean - 0.2580) < 1e-3
else:
assert abs(result_sum - 198.1318) < 1e-2
Expand All @@ -872,8 +872,8 @@ def test_full_loop_with_set_alpha_to_one(self):
result_mean = jnp.mean(jnp.abs(sample))

if jax_device == "tpu":
assert abs(result_sum - 185.4352) < 1e-2
assert abs(result_mean - 0.24145) < 1e-3
assert abs(result_sum - 186.83226) < 1e-2
assert abs(result_mean - 0.24327) < 1e-3
else:
assert abs(result_sum - 186.9466) < 1e-2
assert abs(result_mean - 0.24342) < 1e-3
Expand All @@ -885,8 +885,8 @@ def test_full_loop_with_no_set_alpha_to_one(self):
result_mean = jnp.mean(jnp.abs(sample))

if jax_device == "tpu":
assert abs(result_sum - 185.4352) < 1e-2
assert abs(result_mean - 0.2414) < 1e-3
assert abs(result_sum - 186.83226) < 1e-2
assert abs(result_mean - 0.24327) < 1e-3
else:
assert abs(result_sum - 186.9482) < 1e-2
assert abs(result_mean - 0.2434) < 1e-3

0 comments on commit 2e980ac

Please sign in to comment.