d2cdade362349254a6774411df0ded6c6da455d8,tests/samplers/static_batch_sampler_test.py,StaticBatchSamplerTest,test_config,#StaticBatchSamplerTest#,11

Before Change


class StaticBatchSamplerTest(tf.test.TestCase):
    def test_config(self):
        with self.test_session():
            gan = hg.GAN(graph={"x" : tf.constant(1., shape=[1,4,4,1], dtype=tf.float32)})
            gan.create()

            sampler = StaticBatchSampler(gan)
            self.assertEqual(sampler.sample("/tmp/test.png")[0]["image"].shape[-1], 1)

After Change


class StaticBatchSamplerTest(tf.test.TestCase):
    def test_config(self):
        with self.test_session():
            gan = mock_gan()
            gan.create()

            sampler = StaticBatchSampler(gan)
            self.assertEqual(sampler.sample("/tmp/test.png")[0]["image"].shape[-1], 1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: d2cdade362349254a6774411df0ded6c6da455d8
Time: 2017-06-07
Author: martyn@255bits.com
File Name: tests/samplers/static_batch_sampler_test.py
Class Name: StaticBatchSamplerTest
Method Name: test_config


Project Name: HyperGAN/HyperGAN
Commit Name: d2cdade362349254a6774411df0ded6c6da455d8
Time: 2017-06-07
Author: martyn@255bits.com
File Name: tests/samplers/static_batch_sampler_test.py
Class Name: StaticBatchSamplerTest
Method Name: test_config


Project Name: HyperGAN/HyperGAN
Commit Name: 194ace00efdc4948430b26be988cfd31e445fcf3
Time: 2017-06-07
Author: martyn@255bits.com
File Name: tests/samplers/grid_sampler_test.py
Class Name: GridSamplerTest
Method Name: test_config


Project Name: HyperGAN/HyperGAN
Commit Name: d2cdade362349254a6774411df0ded6c6da455d8
Time: 2017-06-07
Author: martyn@255bits.com
File Name: tests/samplers/batch_sampler_test.py
Class Name: BatchSamplerTest
Method Name: test_config