022034282fc8ca8694ceffc2aec711c9376a3e37,hypergan/inputs/image_loader.py,ImageLoader,tfrecord_create,#ImageLoader#Any#Any#Any#Any#Any#Any#Any#,18

Before Change


        dataset = dataset.map(parse_function, num_parallel_calls=4)
        dataset = dataset.flat_map(lambda x: x.batch(self.batch_size, drop_remainder=True))
        dataset = dataset.repeat()
        dataset = dataset.prefetch(10)
        dataset = dataset.map(set_shape)

        self.dataset = dataset
        return dataset

After Change


            dataset = dataset.shuffle(self.file_count)
        dataset = dataset.map(parse_function, num_parallel_calls=4)
        dataset = dataset.flat_map(lambda x: x.batch(self.batch_size, drop_remainder=True).repeat().prefetch(10))
        dataset = dataset.repeat().prefetch(10)
        dataset = dataset.map(set_shape)

        self.dataset = dataset
        return dataset
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 022034282fc8ca8694ceffc2aec711c9376a3e37
Time: 2019-08-13
Author: mikkel@255bits.com
File Name: hypergan/inputs/image_loader.py
Class Name: ImageLoader
Method Name: tfrecord_create


Project Name: tensorflow/models
Commit Name: 92903d58c77a23b7b3aca3a14e311b943b5234df
Time: 2020-05-06
Author: hongkuny@google.com
File Name: official/nlp/nhnet/input_pipeline.py
Class Name:
Method Name: create_dataset


Project Name: tensorflow/agents
Commit Name: 9eebd917502beddd01a30ecffe431a1405779562
Time: 2018-12-04
Author: sfishman@google.com
File Name: tf_agents/agents/dqn/examples/oog_train_eval.py
Class Name:
Method Name: train_eval