Skip to content

Commit

Permalink
Replace value in simple_step_size_adaptation_test to work around a …
Browse files Browse the repository at this point in the history
…test failure caused by different numerics in Numpy 1.21.4/Python 3.9.

PiperOrigin-RevId: 410371438
  • Loading branch information
emilyfertig committed Nov 17, 2021
1 parent 286af5b commit 02f31b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ class SimpleStepSizeAdaptationStaticBroadcastingTest(test_util.TestCase):
)
def testBroadcasting(self, old_step_size, new_step_size):
log_accept_ratio = tf.constant(
[[np.log(0.73), np.log(0.76), np.log(0.73)],
[[np.log(0.72), np.log(0.76), np.log(0.73)],
[np.log(0.77), np.log(0.77), np.log(0.73)]],
dtype=tf.float64)
log_accept_ratio = tf1.placeholder_with_default(
Expand Down

0 comments on commit 02f31b5

Please sign in to comment.