96fad3497a4373cc289f9e7c4272d4722a22f381,src/mjsynth.py,,bucketed_input_pipeline,#,29

Before Change


        iterator = dataset.make_one_shot_iterator()
        image, width, label, length, text, filename, get_input = iterator.get_next()

        label = tf.deserialize_many_sparse(label, tf.int64) // post-batching...
        label = tf.cast(label, tf.int32) // for ctc_loss
        
    return image, width, label, length, text, filename

def threaded_input_pipeline(base_dir,file_patterns,
                            num_threads=4,
                            batch_size=32,

After Change


        dataset = dataset.apply(tf.contrib.data.shuffle_and_repeat(batch_size, 
                                                                   count=num_epoch))

        dataset = dataset.map(lambda image, 
                              width, label, 
                              length, text, 
                              filename, get_input: 
                              (image, width, 
                              tf.cast(tf.deserialize_many_sparse(label, tf.int64), tf.int32),
                              length, text, filename, get_input))

    return dataset

def threaded_input_pipeline(base_dir,file_patterns,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: weinman/cnn_lstm_ctc_ocr
Commit Name: 96fad3497a4373cc289f9e7c4272d4722a22f381
Time: 2018-06-20
Author: am.lamsal@gmail.com
File Name: src/mjsynth.py
Class Name:
Method Name: bucketed_input_pipeline


Project Name: jadore801120/attention-is-all-you-need-pytorch
Commit Name: 15b19130a9162feb9153a2f38c5c8b0af02c6a1d
Time: 2018-08-21
Author: yhhuang@nlg.csie.ntu.edu.tw
File Name: train.py
Class Name:
Method Name: train_epoch


Project Name: weinman/cnn_lstm_ctc_ocr
Commit Name: 96fad3497a4373cc289f9e7c4272d4722a22f381
Time: 2018-06-20
Author: am.lamsal@gmail.com
File Name: src/mjsynth.py
Class Name:
Method Name: threaded_input_pipeline


Project Name: jadore801120/attention-is-all-you-need-pytorch
Commit Name: 15b19130a9162feb9153a2f38c5c8b0af02c6a1d
Time: 2018-08-21
Author: yhhuang@nlg.csie.ntu.edu.tw
File Name: train.py
Class Name:
Method Name: eval_epoch