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

Commit 6edbd6b

Browse files
Ryan SepassiCopybara-Service
authored andcommitted
Remove flaky testNoShuffleFail test that was testing non-guaranteed behavior
PiperOrigin-RevId: 207297174
1 parent 927f78c commit 6edbd6b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tensor2tensor/data_generators/problem_test.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,6 @@ def testNoShufflePreprocess(self):
7373
with tf.Session() as sess:
7474
self.assertTrue(assert_tensors_equal(sess, tensor1, tensor2, 20))
7575

76-
def testNoShuffleFail(self):
77-
problem = algorithmic.TinyAlgo()
78-
dataset = problem.dataset(mode=tf.estimator.ModeKeys.TRAIN,
79-
data_dir=algorithmic.TinyAlgo.data_dir,
80-
shuffle_files=True)
81-
82-
tensor1 = dataset.make_one_shot_iterator().get_next()["targets"]
83-
tensor2 = dataset.make_one_shot_iterator().get_next()["targets"]
84-
85-
with tf.Session() as sess:
86-
self.assertFalse(assert_tensors_equal(sess, tensor1, tensor2, 20))
87-
8876

8977
if __name__ == "__main__":
9078
tf.test.main()

0 commit comments

Comments
 (0)