1d50d1fbba5a48af58c1c5f5e732c207d58a7a87,hypergan/configurable_component.py,ConfigurableComponent,layer_linear,#ConfigurableComponent#Any#Any#Any#,375

Before Change


            nn.Linear(self.current_input_size, int(args[0]))
        ]
        if options.activation != "null":
            layers.append(nn.ReLU())//TODO

        self.current_input_size = int(args[0])
        return nn.Sequential(*layers)

After Change


            nn.Flatten(),
            nn.Linear(self.current_input_size, output_size)
        ]
        if len(shape) > 1:
            self.current_channels = shape[2]
            self.current_width = shape[0]
            self.current_height = shape[1]
            layers.append(Reshape(self.current_channels, self.current_height, self.current_width))

        if options.activation != "null":
            layers.append(self.activation_to_module(options.activation or "relu"))

        self.current_input_size = output_size
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 1d50d1fbba5a48af58c1c5f5e732c207d58a7a87
Time: 2020-02-08
Author: martyn@255bits.com
File Name: hypergan/configurable_component.py
Class Name: ConfigurableComponent
Method Name: layer_linear


Project Name: stellargraph/stellargraph
Commit Name: c54a64ed9bbaff172353370f2055296a22956244
Time: 2019-09-26
Author: 52440942+geoffj-d61@users.noreply.github.com
File Name: stellargraph/layer/graphsage.py
Class Name: GraphSAGE
Method Name: __call__


Project Name: HyperGAN/HyperGAN
Commit Name: 7a65d9993bdda4a5248f6aa313abf687faa031a6
Time: 2020-06-27
Author: martyn@255bits.com
File Name: hypergan/configurable_component.py
Class Name: ConfigurableComponent
Method Name: layer_linear