c2b21cba9612f83bc2b9d7ef2a9c43da1fd4cbdb,hypergan/configurable_component.py,ConfigurableComponent,layer_deconv,#ConfigurableComponent#Any#Any#Any#,621

Before Change


        if len(args) > 0:
            channels = int(args[0])
        else:
            channels = self.ops.shape(net)[-1]

        options = hc.Config(options)
        self.nn_layers.append(nn.ConvTranspose2d(self.current_channels, channels, options.filter or 3, options.stride or 2, (options.stride or 2) // 1))
        self.nn_layers.append(nn.ReLU())//TODO

After Change


        filter = 4 //TODO
        stride = 2
        padding = 1
        layers = [nn.ConvTranspose2d(self.current_channels, channels, 4, 2, 1)]
        if options.activation != "null":
            layers.append(nn.ReLU())//TODO
        self.nn_layers.append(nn.Sequential(*layers))
        self.current_channels = channels
        self.current_width = self.current_width * 2 //TODO
        self.current_height = self.current_height * 2 //TODO
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


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: analysiscenter/batchflow
Commit Name: 1b28237bcd45f7d66a742dd13ddc946adbc55b57
Time: 2019-11-20
Author: dimonovez@gmail.com
File Name: batchflow/models/eager_torch/resnet.py
Class Name: ResNet
Method Name: body


Project Name: facebookresearch/Horizon
Commit Name: 462a933b3defaf7f10a1e1023b9d81b5e92e3227
Time: 2020-02-29
Author: czxttkl@fb.com
File Name: ml/rl/models/seq2slate.py
Class Name: BaselineNet
Method Name: __init__


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