1d396fb7f0ed8b8bcddfc918632122d3980470f0,hypergan/encoders/uniform_encoder.py,UniformEncoder,create,#UniformEncoder#,12

Before Change


        ops = self.ops
        config = self.config
        projections = []
        batch_size = ops.shape(gan.inputs[0])[0]
        self.z = tf.random_uniform([batch_size, config.z], config.min or -1, config.max or 1, dtype=ops.dtype)
        for projection in config.projections:
          projections.append(projection(config, gan, self.z))

After Change


        ops = self.ops
        config = self.config
        projections = []
        batch_size = self.gan.batch_size()
        self.z = tf.random_uniform([batch_size, config.z], config.min or -1, config.max or 1, dtype=ops.dtype)
        for projection in config.projections:
          projections.append(projection(config, gan, self.z))
        self.sample = tf.concat(axis=1, values=projections)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 1d396fb7f0ed8b8bcddfc918632122d3980470f0
Time: 2017-06-06
Author: martyn@255bits.com
File Name: hypergan/encoders/uniform_encoder.py
Class Name: UniformEncoder
Method Name: create


Project Name: HyperGAN/HyperGAN
Commit Name: 5ff7df6e307281aa859d2bed184d3f74124bb64e
Time: 2018-08-16
Author: martyn@255bits.com
File Name: hypergan/losses/base_loss.py
Class Name: BaseLoss
Method Name: create


Project Name: HyperGAN/HyperGAN
Commit Name: 6e8c2652fd9b54eb62738e63f8a7c4e4b2f78e9c
Time: 2017-06-07
Author: mikkel@255bits.com
File Name: hypergan/losses/base_loss.py
Class Name: BaseLoss
Method Name: split_batch