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

Before Change



    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)

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)

    return net
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: wenwei202/iss-rnns
Commit Name: 3d59110d177256a6d5d6f7e1100ef446fb234729
Time: 2016-08-15
Author: seominjoon@gmail.com
File Name: basic/model.py
Class Name: Model
Method Name: _build_forward


Project Name: HyperGAN/HyperGAN
Commit Name: e4ee8e989f0ee8138798c290233c1c3ec7d3fb61
Time: 2016-10-29
Author: martyn@255bits.com
File Name: lib/gan.py
Class Name:
Method Name: generator