777e5ad9e766b32f43ddbbb1a98af3b34593343e,hypergan/gans/alpha_gan.py,AlphaGAN,create,#AlphaGAN#,45
Before Change
// project the output of the autoencoder
projection_input = ops.reshape(encoder.sample, [ops.shape(encoder.sample)[0],-1])
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)
z = ops.reshape(z, ops.shape(z_hat))
// end encoding
After Change
z_size = 1
for size in ops.shape(encoder.sample)[1:]:
z_size *= size
uniform_encoder_config.z = z_size // len(uniform_encoder_config.projections)
uniform_encoder = UniformEncoder(self, uniform_encoder_config)
uniform_encoder.create()
self.generator = self.create_component(config.generator)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: HyperGAN/HyperGAN
Commit Name: 777e5ad9e766b32f43ddbbb1a98af3b34593343e
Time: 2017-07-18
Author: martyn@255bits.com
File Name: hypergan/gans/alpha_gan.py
Class Name: AlphaGAN
Method Name: create
Project Name: tensorflow/models
Commit Name: 5e854f25098ca40a4ac80197607bf883feaeb375
Time: 2018-02-13
Author: lzc@google.com
File Name: research/object_detection/utils/learning_schedules.py
Class Name:
Method Name: manual_stepping
Project Name: onnx/onnx-tensorflow
Commit Name: 465a02819ebff33ee014ebed17a1b70f66310fcb
Time: 2018-03-04
Author: fumihwh@gmail.com
File Name: onnx_tf/backend.py
Class Name: TensorflowBackend
Method Name: _bin_op