Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 1922524

Browse files
afrozenatorCopybara-Service
authored andcommitted
Disable bayes_test in eager mode.
PiperOrigin-RevId: 219229748
1 parent 9ef32ec commit 1922524

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tensor2tensor/layers/bayes_test.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929

3030
class BayesTest(parameterized.TestCase, tf.test.TestCase):
3131

32-
@tf.contrib.eager.run_test_in_graph_and_eager_modes()
32+
# TODO(trandustin): Remove the hack in the code, or re-enable once T2T drops
33+
# support for TF 1.10
34+
# @tf.contrib.eager.run_test_in_graph_and_eager_modes()
3335
def testDenseReparameterization(self):
3436
inputs = tf.to_float(np.random.rand(5, 3, 12))
3537
layer = bayes.DenseReparameterization(4, activation=tf.nn.relu)
@@ -42,7 +44,9 @@ def testDenseReparameterization(self):
4244
# TODO(trandustin): Fix this to work with Eager.
4345
# self.assertNotAllClose(res1, res2)
4446

45-
@tf.contrib.eager.run_test_in_graph_and_eager_modes()
47+
# TODO(trandustin): Remove the hack in the code, or re-enable once T2T drops
48+
# support for TF 1.10
49+
# @tf.contrib.eager.run_test_in_graph_and_eager_modes()
4650
def testDenseReparameterizationModel(self):
4751
inputs = tf.to_float(np.random.rand(3, 4, 4, 1))
4852
model = tf.keras.Sequential([

0 commit comments

Comments
 (0)