Skip to content

Commit

Permalink
Increase test tolerance for upcoming JAX PRNG change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 580168763
  • Loading branch information
jburnim authored and tensorflower-gardener committed Nov 7, 2023
1 parent d31cd56 commit dad34d0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,11 @@ def testMeanGoesInRightDirection(self):
initial_running_variance=initial_running_variance)

# This number started at `error_factor`. Make sure the mean is now at least
# 75% closer.
# 50% closer.
final_mean_diff = tf.abs(results.final_mean - results.true_mean)
np.testing.assert_array_less(
self.evaluate(final_mean_diff),
self.evaluate(0.25 * error_factor))
self.evaluate(0.5 * error_factor))

def testDoesNotGoesInWrongDirection(self):
# As above, we test a weaker property, which is that the variance and
Expand Down

0 comments on commit dad34d0

Please sign in to comment.