e64f1d7b07d376634107751903c38e18560ac203,agents/dagger/train/hdf5_to_tfrecord.py,,decode,#,136

Before Change


        // Any preprocessing here ...

        // Creates batches by randomly shuffling tensors
        images, labels = tf.train.shuffle_batch([image, label], batch_size=10, capacity=30, num_threads=1,
                                                min_after_dequeue=10)

After Change


        image = tf.decode_raw(features["image/encoded"], tf.uint8)

        sess.run(tf.local_variables_initializer())
        sess.run(tf.global_variables_initializer())

        coord = tf.train.Coordinator()
        threads = tf.train.start_queue_runners(coord=coord)
        for i in range(1000):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepdrive/deepdrive
Commit Name: e64f1d7b07d376634107751903c38e18560ac203
Time: 2018-05-19
Author: cquiter@gmail.com
File Name: agents/dagger/train/hdf5_to_tfrecord.py
Class Name:
Method Name: decode


Project Name: tensorlayer/tensorlayer
Commit Name: bf78b94b2907fbcd5740e35a7b21ea2c434e380d
Time: 2019-02-27
Author: jingqing.zhang15@imperial.ac.uk
File Name: examples/text_generation/tutorial_generate_text.py
Class Name:
Method Name: main_restore_embedding_layer


Project Name: tensorflow/tensorflow
Commit Name: b4e21d815a8421003b6b3c0c4b59cde7f056c647
Time: 2020-11-20
Author: reedwm@google.com
File Name: tensorflow/python/ops/batch_ops_test.py
Class Name: BatchOpsTest
Method Name: testBatchDecoratedWithCapturedInput