5d5b5c0db91b923d35bb78454b430272212699d4,models/experimental/dcgan/mnist_input.py,InputFunction,__call__,#InputFunction#Any#,63

Before Change



    // Returns discriminator input (real data), generator input (noise) generated
    // in model instead
    return images, None   // label unused by unconditional GAN


def convert_array_to_image(array):

After Change


    dataset = dataset.prefetch(2)    // Prefetch overlaps in-feed with training
    images, labels = dataset.make_one_shot_iterator().get_next()

    random_noise = tf.random_normal([batch_size, self.noise_dim])

    features = {
        "real_images": images,
        "random_noise": random_noise}

    return features, labels

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/tpu
Commit Name: 5d5b5c0db91b923d35bb78454b430272212699d4
Time: 2018-03-06
Author: frankchn@google.com
File Name: models/experimental/dcgan/mnist_input.py
Class Name: InputFunction
Method Name: __call__


Project Name: Bihaqo/t3f
Commit Name: 4c57c23e138e8b26427337d67536d4e239d55e06
Time: 2017-02-03
Author: novikov@bayesgroup.ru
File Name: tensor_train_test.py
Class Name: TensorTrainTest
Method Name: testValidateTTCores2d


Project Name: tensorflow/tpu
Commit Name: 5d5b5c0db91b923d35bb78454b430272212699d4
Time: 2018-03-06
Author: frankchn@google.com
File Name: models/experimental/dcgan/cifar_input.py
Class Name: InputFunction
Method Name: __call__