1aa6f71331656a09a2cc5a6f85a584ee362cedae,lib/discriminators/pyramid_discriminator.py,,discriminator,#Any#Any#Any#Any#Any#,6

Before Change



        xgs_conv.append(mxg)
  
        result = tf.concat(3, [result, xg])

      fltr=3
      result = conv2d(result, int(int(result.get_shape()[3])*depth_increase), name="d_expand_layer"+str(i), k_w=fltr, k_h=fltr, d_h=2, d_w=2)

      print("Discriminator pyramid layer:", result)

    filter_size_w = 2
    filter_size_h = 2
    filter = [1,filter_size_w,filter_size_h,1]
    stride = [1,filter_size_w,filter_size_h,1]
    result = tf.nn.avg_pool(result, ksize=filter, strides=stride, padding="SAME")

    result = batch_norm(config["batch_size"], name="d_expand_bn_end_"+str(i))(result)
    result = activation(result)

After Change



      print("Discriminator pyramid layer:", net)

    net = tf.reshape(net, [config["batch_size"]*2, -1])
    net = batch_norm(config["batch_size"]*2, name="d_expand_bn_end_"+str(i))(net)
    net = activation(net)
    net = linear(net, int(1024), scope="d_fc_end1")
    net = batch_norm(config["batch_size"]*2, name="d_bn_end1")(net)
    net = activation(net)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 1aa6f71331656a09a2cc5a6f85a584ee362cedae
Time: 2016-11-26
Author: martyn@255bits.com
File Name: lib/discriminators/pyramid_discriminator.py
Class Name:
Method Name: discriminator


Project Name: HyperGAN/HyperGAN
Commit Name: edce51a1976684e5a0cc1eef791d2c7aee72fc0d
Time: 2017-01-06
Author: martyn@255bits.com
File Name: hypergan/discriminators/densenet_discriminator.py
Class Name:
Method Name: discriminator


Project Name: deepchem/deepchem
Commit Name: c08d9e1dfa7062682697311a2bad6795f87b6c40
Time: 2017-04-14
Author: zqwu@stanford.edu
File Name: deepchem/nn/layers.py
Class Name: DTNNStep
Method Name: call