aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/kernel_tests/rnn_test.py
diff options
context:
space:
mode:
authorGravatar Francois Chollet <fchollet@google.com>2018-10-09 16:19:46 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-09 16:24:25 -0700
commitc98ffffcb4e0cc668c0ff7b73d51677a7eb7dcf4 (patch)
tree252d6d19afaf158a45f8a1f080ab0da2f6a20b52 /tensorflow/python/kernel_tests/rnn_test.py
parent69c4a426fc4a3afd83c8190467b07c17b8b2ed60 (diff)
Part 2/3 of the update of tf.keras to the Keras 2.2.4 API.
PiperOrigin-RevId: 216442569
Diffstat (limited to 'tensorflow/python/kernel_tests/rnn_test.py')
-rw-r--r--tensorflow/python/kernel_tests/rnn_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/python/kernel_tests/rnn_test.py b/tensorflow/python/kernel_tests/rnn_test.py
index 2f6963f6b8..907e1277a9 100644
--- a/tensorflow/python/kernel_tests/rnn_test.py
+++ b/tensorflow/python/kernel_tests/rnn_test.py
@@ -571,8 +571,8 @@ class RNNTest(test.TestCase):
cell.set_weights(tf_weights)
[tf_out, tf_state] = sess.run([tf_out, tf_state], {inputs: x_train})
- self.assertAllClose(tf_out, k_out)
- self.assertAllClose(tf_state, k_state)
+ self.assertAllClose(tf_out, k_out, atol=1e-5)
+ self.assertAllClose(tf_state, k_state, atol=1e-5)
def testBasicLSTMCellInterchangeWithLSTMCell(self):
with self.session(graph=ops_lib.Graph()) as sess: