5a949f8810dbc838c5827928bdcd83f65876a955,hypergan/graph/graph.py,Graph,create_z_encoding,#Graph#,64
Before Change
def create_z_encoding(self):
z_base_config = hc.Config(hc.lookup_functions(self.gan.config.z_encoder_base))
self.gan.graph.z_base = z_base_config.create(z_base_config, self.gan)
encoders = [self.gan.graph.z_base]
for i, encoder in enumerate(self.gan.config.z_encoders):
encoder = hc.Config(hc.lookup_functions(encoder))
encoders.append(encoder.create(encoder, self.gan))
After Change
return [d_real, d_fake, d_reals, d_fakes]
def create_z_encoding(self):
self.gan.graph.z = []
encoders = []
for i, encoder in enumerate(self.gan.config.encoders):
encoder = hc.Config(hc.lookup_functions(encoder))
zs, z_base = encoder.create(encoder, self.gan)
encoders.append(zs)
self.gan.graph.z.append(z_base)
z_encoded = tf.concat(1, encoders)
self.gan.graph.z_encoded = z_encoded
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: HyperGAN/HyperGAN
Commit Name: 5a949f8810dbc838c5827928bdcd83f65876a955
Time: 2017-02-13
Author: mikkel@255bits.com
File Name: hypergan/graph/graph.py
Class Name: Graph
Method Name: create_z_encoding
Project Name: HyperGAN/HyperGAN
Commit Name: ad0437cbe8b274d5268914718cf036efe5f4b772
Time: 2017-02-13
Author: mikkel@255bits.com
File Name: hypergan/graph/graph.py
Class Name: Graph
Method Name: create_z_encoding
Project Name: comic/grand-challenge.org
Commit Name: a8eab99a0476060c27ae890071a5e17c01531ee7
Time: 2020-01-27
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/reader_studies/models.py
Class Name: ReaderStudy
Method Name: add_ground_truth