faf4bbb36d576b0c328f179eb895eb6a48f284e1,research/object_detection/builders/dataset_builder.py,,build,#Any#Any#Any#,92

Before Change


      data_map_fn = dataset.map
    dataset = data_map_fn(process_fn, num_parallel_calls=num_parallel_calls)
    if batch_size:
      dataset = dataset.apply(
          tf.contrib.data.batch_and_drop_remainder(batch_size))
    dataset = dataset.prefetch(input_reader_config.num_prefetch_batches)
    return dataset

  raise ValueError("Unsupported input_reader_config.")

After Change


      data_map_fn = dataset.map
    dataset = data_map_fn(process_fn, num_parallel_calls=num_parallel_calls)
    if batch_size:
      dataset = dataset.batch(batch_size, drop_remainder=True)
    dataset = dataset.prefetch(input_reader_config.num_prefetch_batches)
    return dataset

  raise ValueError("Unsupported input_reader_config.")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 17

Non-data size: 5

Instances


Project Name: tensorflow/models
Commit Name: faf4bbb36d576b0c328f179eb895eb6a48f284e1
Time: 2019-10-11
Author: derek.murray@gmail.com
File Name: research/object_detection/builders/dataset_builder.py
Class Name:
Method Name: build


Project Name: tensorflow/models
Commit Name: aead3912c8d1c228a6240057d4c1072f96fab2a9
Time: 2018-12-19
Author: derek.murray@gmail.com
File Name: official/mnist/mnist_tpu.py
Class Name:
Method Name: train_input_fn


Project Name: tensorflow/tpu
Commit Name: fa19bd7fc3a5ddb4583312448fe750031c145d5f
Time: 2018-10-15
Author: shizhiw@google.com
File Name: models/official/densenet/densenet_imagenet.py
Class Name: ImageNetInput
Method Name: __call__


Project Name: tensorflow/tpu
Commit Name: fa19bd7fc3a5ddb4583312448fe750031c145d5f
Time: 2018-10-15
Author: shizhiw@google.com
File Name: models/official/mobilenet/mobilenet.py
Class Name: InputPipeline
Method Name: input_fn


Project Name: tensorflow/tpu
Commit Name: fa19bd7fc3a5ddb4583312448fe750031c145d5f
Time: 2018-10-15
Author: shizhiw@google.com
File Name: models/experimental/dcgan/mnist_input.py
Class Name: InputFunction
Method Name: __call__


Project Name: tensorflow/tpu
Commit Name: fa19bd7fc3a5ddb4583312448fe750031c145d5f
Time: 2018-10-15
Author: shizhiw@google.com
File Name: models/experimental/inception/inception_v2.py
Class Name: InputPipeline
Method Name: input_fn


Project Name: tensorflow/tpu
Commit Name: fa19bd7fc3a5ddb4583312448fe750031c145d5f
Time: 2018-10-15
Author: shizhiw@google.com
File Name: models/experimental/dcgan/cifar_input.py
Class Name: InputFunction
Method Name: __call__


Project Name: tensorflow/tpu
Commit Name: fa19bd7fc3a5ddb4583312448fe750031c145d5f
Time: 2018-10-15
Author: shizhiw@google.com
File Name: models/official/squeezenet/data_pipeline.py
Class Name: InputReader
Method Name: __call__


Project Name: tensorflow/models
Commit Name: faf4bbb36d576b0c328f179eb895eb6a48f284e1
Time: 2019-10-11
Author: derek.murray@gmail.com
File Name: research/seq2species/input.py
Class Name: InputDataset
Method Name: input_fn


Project Name: tensorflow/tpu
Commit Name: fa19bd7fc3a5ddb4583312448fe750031c145d5f
Time: 2018-10-15
Author: shizhiw@google.com
File Name: models/experimental/inception/inception_v3.py
Class Name: InputPipeline
Method Name: dataset_iterator


Project Name: tensorflow/models
Commit Name: aead3912c8d1c228a6240057d4c1072f96fab2a9
Time: 2018-12-19
Author: derek.murray@gmail.com
File Name: official/mnist/mnist_tpu.py
Class Name:
Method Name: eval_input_fn


Project Name: NifTK/NiftyNet
Commit Name: 2bca7f3cb86242c9c03ebbd318ea739065f0f1cf
Time: 2019-01-29
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/image_window_dataset.py
Class Name: ImageWindowDataset
Method Name: dataset_preprocessing


Project Name: tensorflow/magenta
Commit Name: c8233d3284b9d0754690ba0831120e25f40021e2
Time: 2018-10-04
Author: derek.murray@gmail.com
File Name: magenta/models/piano_genie/loader.py
Class Name:
Method Name: load_noteseqs


Project Name: tensorflow/tpu
Commit Name: fa19bd7fc3a5ddb4583312448fe750031c145d5f
Time: 2018-10-15
Author: shizhiw@google.com
File Name: models/experimental/inception/inception_v4.py
Class Name: InputPipeline
Method Name: input_fn


Project Name: tensorflow/tpu
Commit Name: 546866f67f0674e52fa76547e98380ba51921b8c
Time: 2019-10-08
Author: power@google.com
File Name: models/official/mobilenet/supervised_images.py
Class Name: InputPipeline
Method Name: input_fn


Project Name: tensorflow/tpu
Commit Name: fa19bd7fc3a5ddb4583312448fe750031c145d5f
Time: 2018-10-15
Author: shizhiw@google.com
File Name: models/experimental/cifar_keras/cifar_keras.py
Class Name:
Method Name: input_fn


Project Name: google/deepvariant
Commit Name: e2fff1904f99506c31f19bc4e4d7e535cb7cbaf3
Time: 2018-10-09
Author: no-reply@google.com
File Name: deepvariant/data_providers.py
Class Name: DeepVariantInput
Method Name: __call__