96fad3497a4373cc289f9e7c4272d4722a22f381,src/mjsynth.py,,threaded_input_pipeline,#Any#Any#Any#Any#Any#Any#Any#,80
Before Change
with tf.device(batch_device): // Create batch queue
image, width, label, length, text, filename = tf.train.batch_join(
data_tuples,
batch_size=batch_size,
capacity=queue_capacity,
allow_smaller_final_batch=final_batch,
dynamic_pad=True)
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 _element_length_fn(image, width, label, length, text, filename, get_input):
return width
After Change
with tf.device(batch_device): // Create batch queue
dataset = dataset.batch(batch_size)
dataset = dataset.map(lambda image,
width, label,
length, text,
filename:
(image, width,
tf.cast(tf.deserialize_many_sparse(label, tf.int64), tf.int32),
length, text, filename))
return dataset
def _element_length_fn(image, width, label, length, text, filename, get_input):
return width
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
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: threaded_input_pipeline
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: 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: 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