60b1f9eb915691fbac1e5d1edbcf295af628e131,tests/discriminators/pyramid_discriminator_test.py,PyramidDiscriminatorTest,test_create,#PyramidDiscriminatorTest#,28

Before Change


            remove_d_config["discriminator"] = None
            remove_d_config["loss"] = None
            remove_d_config["trainer"] = None
            gan = hg.GAN(config = remove_d_config, graph = {
                "x": tf.constant(1, shape=[1,4,4,1], dtype=tf.float32)
            })
            discriminator = PyramidDiscriminator(gan, config)
            gan.create()
            net = discriminator.create()
            self.assertEqual(int(net.get_shape()[1]), 7)

After Change


            remove_d_config["discriminator"] = None
            remove_d_config["loss"] = None
            remove_d_config["trainer"] = None
            gan = hg.GAN(config = remove_d_config, inputs = MockInput())
            discriminator = PyramidDiscriminator(gan, config)
            gan.create()
            net = discriminator.create()
            self.assertEqual(int(net.get_shape()[1]), 112)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 60b1f9eb915691fbac1e5d1edbcf295af628e131
Time: 2017-06-07
Author: martyn@255bits.com
File Name: tests/discriminators/pyramid_discriminator_test.py
Class Name: PyramidDiscriminatorTest
Method Name: test_create


Project Name: HyperGAN/HyperGAN
Commit Name: 092da5aad30dfa26d438cee1f2fcc4bd0ee8d7fd
Time: 2017-06-03
Author: martyn@255bits.com
File Name: tests/encoders/uniform_encoder_test.py
Class Name:
Method Name:


Project Name: HyperGAN/HyperGAN
Commit Name: 60b1f9eb915691fbac1e5d1edbcf295af628e131
Time: 2017-06-07
Author: martyn@255bits.com
File Name: tests/gans/standard_gan_test.py
Class Name: StandardGanTest
Method Name: test_default