ad0437cbe8b274d5268914718cf036efe5f4b772,hypergan/graph/graph.py,Graph,create_z_encoding,#Graph#,64

Before Change


        return [d_real, d_fake, d_reals, d_fakes]

    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))

After Change


        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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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: 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: facebookresearch/pytext
Commit Name: e7c6ddd21e1b22a987f321b0abdcf501f71de892
Time: 2019-05-13
Author: egaudet@fb.com
File Name: pytext/task/tasks.py
Class Name: Config
Method Name: Config_1