Skip to content

Commit 02f31b5

Browse files
committed
Replace value in simple_step_size_adaptation_test to work around a test failure caused by different numerics in Numpy 1.21.4/Python 3.9.
PiperOrigin-RevId: 410371438
1 parent 286af5b commit 02f31b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_probability/python/mcmc/simple_step_size_adaptation_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ class SimpleStepSizeAdaptationStaticBroadcastingTest(test_util.TestCase):
471471
)
472472
def testBroadcasting(self, old_step_size, new_step_size):
473473
log_accept_ratio = tf.constant(
474-
[[np.log(0.73), np.log(0.76), np.log(0.73)],
474+
[[np.log(0.72), np.log(0.76), np.log(0.73)],
475475
[np.log(0.77), np.log(0.77), np.log(0.73)]],
476476
dtype=tf.float64)
477477
log_accept_ratio = tf1.placeholder_with_default(

0 commit comments

Comments
 (0)