4fdfdad84d68f4693719d29941aa65db549dbd2a,tensorflow_datasets/core/tfrecords_reader_test.py,ReaderTest,test_4fold,#ReaderTest#,387

Before Change


    ])

  def test_4fold(self):
    self._write_tfrecord("train", 5, "abcdefghijkl")
    instructions = [
        tfrecords_reader.ReadInstruction("train", from_=k, to=k+25, unit="%")
        for k in range(0, 100, 25)]
    tests = self.reader.read("mnist", instructions, self.SPLIT_INFOS)
    instructions = [
        (tfrecords_reader.ReadInstruction("train", to=k, unit="%") +
         tfrecords_reader.ReadInstruction("train", from_=k+25, unit="%"))
        for k in range(0, 100, 25)]
    trains = self.reader.read("mnist", instructions, self.SPLIT_INFOS)
    read_tests = [list(r) for r in tfds.as_numpy(tests)]
    read_trains = [list(r) for r in tfds.as_numpy(trains)]
    self.assertEqual(read_tests, [[b"a", b"b", b"c"],

After Change


    ])

  def test_4fold(self):
    train_info = self._write_tfrecord("train", 5, "abcdefghijkl")
    instructions = [
        tfrecords_reader.ReadInstruction("train", from_=k, to=k+25, unit="%")
        for k in range(0, 100, 25)]
    tests = self.reader.read("mnist", instructions, [train_info])
    instructions = [
        (tfrecords_reader.ReadInstruction("train", to=k, unit="%") +
         tfrecords_reader.ReadInstruction("train", from_=k+25, unit="%"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 5

Instances


Project Name: tensorflow/datasets
Commit Name: 4fdfdad84d68f4693719d29941aa65db549dbd2a
Time: 2020-05-06
Author: epot@google.com
File Name: tensorflow_datasets/core/tfrecords_reader_test.py
Class Name: ReaderTest
Method Name: test_4fold


Project Name: tensorflow/datasets
Commit Name: 4fdfdad84d68f4693719d29941aa65db549dbd2a
Time: 2020-05-06
Author: epot@google.com
File Name: tensorflow_datasets/core/tfrecords_reader_test.py
Class Name: ReaderTest
Method Name: test_noskip_notake


Project Name: tensorflow/datasets
Commit Name: 4fdfdad84d68f4693719d29941aa65db549dbd2a
Time: 2020-05-06
Author: epot@google.com
File Name: tensorflow_datasets/core/tfrecords_reader_test.py
Class Name: ReaderTest
Method Name: test_shuffle_deterministic


Project Name: tensorflow/datasets
Commit Name: 4fdfdad84d68f4693719d29941aa65db549dbd2a
Time: 2020-05-06
Author: epot@google.com
File Name: tensorflow_datasets/core/tfrecords_reader_test.py
Class Name: ReaderTest
Method Name: test_complex


Project Name: tensorflow/datasets
Commit Name: 4fdfdad84d68f4693719d29941aa65db549dbd2a
Time: 2020-05-06
Author: epot@google.com
File Name: tensorflow_datasets/core/tfrecords_reader_test.py
Class Name: ReaderTest
Method Name: test_shuffle_files


Project Name: tensorflow/datasets
Commit Name: 4fdfdad84d68f4693719d29941aa65db549dbd2a
Time: 2020-05-06
Author: epot@google.com
File Name: tensorflow_datasets/core/tfrecords_reader_test.py
Class Name: ReaderTest
Method Name: test_overlap