39e41a1f89f922c2291b0a21417b3c4ec08cc9ad,hypergan/gans/alpha_gan.py,AlphaGAN,create,#AlphaGAN#,46

Before Change



            z = uniform_encoder.sample
            x = self.inputs.x
            z_hat_shape = [ops.shape(encoder.sample)[1], ops.shape(encoder.sample)[2]]
            z_hat = tf.reshape(encoder.sample, [ops.shape(encoder.sample)[0], -1])
            // TODO copy paste
            projections = []

After Change


            projections = []
            for projection in uniform_encoder.config.projections:
                projection = uniform_encoder.lookup(projection)(uniform_encoder.config, self.gan, projection_input)
                projection = ops.reshape(projection, ops.shape(encoder.sample))
                projections.append(projection)
            z_hat = tf.concat(axis=3, values=projections)
            print("_Z", z_hat, z)

            z = ops.reshape(z, ops.shape(z_hat))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 39e41a1f89f922c2291b0a21417b3c4ec08cc9ad
Time: 2017-06-25
Author: martyn@255bits.com
File Name: hypergan/gans/alpha_gan.py
Class Name: AlphaGAN
Method Name: create


Project Name: HyperGAN/HyperGAN
Commit Name: c2b21cba9612f83bc2b9d7ef2a9c43da1fd4cbdb
Time: 2020-02-07
Author: martyn@255bits.com
File Name: hypergan/configurable_component.py
Class Name: ConfigurableComponent
Method Name: layer_deconv


Project Name: HyperGAN/HyperGAN
Commit Name: c2b21cba9612f83bc2b9d7ef2a9c43da1fd4cbdb
Time: 2020-02-07
Author: martyn@255bits.com
File Name: hypergan/configurable_component.py
Class Name: ConfigurableComponent
Method Name: layer_conv


Project Name: google-research/google-research
Commit Name: 557f9f7648892b0a23a8821c2d5c0a7bb599c5d4
Time: 2020-12-19
Author: liuti@google.com
File Name: poem/core/data_utils.py
Class Name:
Method Name: reshape_by_last_dims