e4fd7cb66ca799fcb11af9ec50ac778186d0a9d7,tests/discriminators/pyramid_discriminator_test.py,PyramidDiscriminatorTest,test_create,#PyramidDiscriminatorTest#,20

Before Change


            self.assertEqual(discriminator.config.activation, tf.nn.tanh)

    def test_create(self):
        config = hc.Config({
            "batch_size": 32,
            "channels": 3,
            "x_dims": [32,32],
            "z_projection_depth": 128
        })
        graph = hc.Config({
            "x": tf.constant(1., shape=[32,32,32,3])
        })

After Change


        })

        with self.test_session():
            remove_d_config = hg.Configuration.default()
            remove_d_config["discriminators"] = []
            remove_d_config["losses"] = []
            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)

    def test_validate(self):
        with self.assertRaises(ValidationException):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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


Project Name: pantsbuild/pants
Commit Name: 1d65d4aaf0c3ee81cccf5824c0bd34e53e0130d4
Time: 2018-07-02
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: src/python/pants/backend/native/tasks/link_shared_libraries.py
Class Name: LinkSharedLibraries
Method Name: _execute_link_request


Project Name: pantsbuild/pants
Commit Name: 1d65d4aaf0c3ee81cccf5824c0bd34e53e0130d4
Time: 2018-07-02
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: src/python/pants/backend/native/tasks/native_compile.py
Class Name: NativeCompile
Method Name: _compile