From 104d1ad66ad4fd6afb4fa62169dc5a08e520ba84 Mon Sep 17 00:00:00 2001 From: Jiri Simsa Date: Thu, 23 Apr 2020 15:10:11 -0700 Subject: [PATCH] [tf.data] Remove invalid test. PiperOrigin-RevId: 308138762 Change-Id: I917bed98222e734d6c4361b9867939f7a2e2c209 --- .../python/data/kernel_tests/shuffle_test.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/tensorflow/python/data/kernel_tests/shuffle_test.py b/tensorflow/python/data/kernel_tests/shuffle_test.py index ceca3e8d61f..eaa4afb93a8 100644 --- a/tensorflow/python/data/kernel_tests/shuffle_test.py +++ b/tensorflow/python/data/kernel_tests/shuffle_test.py @@ -27,7 +27,6 @@ from tensorflow.python import tf2 from tensorflow.python.compat import compat from tensorflow.python.data.kernel_tests import test_base from tensorflow.python.data.ops import dataset_ops -from tensorflow.python.eager import context from tensorflow.python.eager import function from tensorflow.python.framework import combinations from tensorflow.python.framework import dtypes @@ -357,22 +356,6 @@ class ShuffleTest(test_base.DatasetTestBase, parameterized.TestCase): self.assertCountEqual(shuffle_1, shuffle_2) self.assertNotEqual(shuffle_1, shuffle_2) - @combinations.generate(test_base.default_test_combinations()) - def testCoordinateShuffling(self): - if not compat.forward_compatible( - 2020, 5, 22) and tf2.enabled() and context.executing_eagerly(): - self.skipTest("Functionality currently not supported.") - - num_elements = 100 - ds = dataset_ops.Dataset.range(num_elements) - ds = ds.shuffle(num_elements, seed=42) - ds = dataset_ops.Dataset.zip((ds, ds)) - get_next = self.getNext(ds) - - for _ in range(100): - x, y = self.evaluate(get_next()) - self.assertEqual(x, y) - if __name__ == "__main__": test.main()