f80592836b5c17fd3e6be14d3f1ad8a3a7aa3663,cloud_tpu/models/alexnet/alexnet.py,,input_fn,#Any#,152

Before Change


    train_files = ["%s/train-%05d-of-"
                   "01024" % (FLAGS.data_dir, num) for num in range(1024)]
    dataset = tf.contrib.data.TFRecordDataset(train_files)
    dataset = dataset.repeat().map(parser).batch(batch_size)
    images, labels = dataset.make_one_shot_iterator().get_next()
    return (
        tf.reshape(images, [batch_size, 224, 224, 3]),

After Change



    train_files = ["%s/train-%05d-of-"
                   "01024" % (FLAGS.data_dir, num) for num in range(1024)]
    dataset = tf.contrib.data.TFRecordDataset(train_files).repeat()
    if FLAGS.num_preprocessing_threads == 0:
      dataset = dataset.map(parser)
    else:
      dataset = dataset.map(parser,
                            FLAGS.num_preprocessing_threads)
    if FLAGS.prefetch_buffer_size != 0:
      dataset = dataset.prefetch(FLAGS.prefetch_buffer_size)
    dataset = dataset.batch(batch_size)
    images, labels = dataset.make_one_shot_iterator().get_next()
    return (
        tf.reshape(images, [batch_size, 224, 224, 3]),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/tpu
Commit Name: f80592836b5c17fd3e6be14d3f1ad8a3a7aa3663
Time: 2017-08-24
Author: frankchn@google.com
File Name: cloud_tpu/models/alexnet/alexnet.py
Class Name:
Method Name: input_fn


Project Name: tensorflow/tpu
Commit Name: 2f8658fbb6e0a545f18618b6238936280f80382c
Time: 2017-10-02
Author: frankchn@google.com
File Name: cloud_tpu/models/cifar/cifar.py
Class Name:
Method Name: input_fn


Project Name: Calamari-OCR/calamari
Commit Name: da80463d2e35e3d1d4fb1fdd58992c9453f95dcf
Time: 2018-06-28
Author: wick.chr.info@gmail.com
File Name: calamari_ocr/ocr/backends/tensorflow_backend/tensorflow_model.py
Class Name: TensorflowModel
Method Name: create_dataset_inputs