7a65d9993bdda4a5248f6aa313abf687faa031a6,hypergan/configurable_component.py,ConfigurableComponent,layer_linear,#ConfigurableComponent#Any#Any#Any#,334

Before Change


            nn.Linear(options.input_size or self.current_input_size, output_size, bias=bias)
        ]
        self.nn_init(layers[0], options.initializer)
        if len(shape) == 3:
            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 len(shape) == 2:
            self.current_channels = shape[1]
            self.current_width = 1
            self.current_height = shape[0]

After Change



        layers += [nn.Linear(options.input_size or self.current_size.size(), output_size, bias=bias)]
        self.nn_init(layers[0], options.initializer)
        self.current_size = LayerSize(*reversed(shape))
        if len(shape) != 1:
            layers.append(Reshape(*self.current_size.dims))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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


Project Name: tensorflow/datasets
Commit Name: 55bb2a80ab674c2f6254ac74d90bd6e5f478e895
Time: 2018-12-07
Author: afrozm@google.com
File Name: tensorflow_datasets/scripts/document_datasets.py
Class Name:
Method Name: make_statistics_information


Project Name: NifTK/NiftyNet
Commit Name: 2fb9ed3faa5cb1062fd7f0f0ade407ed58e6d244
Time: 2017-08-15
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_windows_aggregator.py
Class Name: GridSamplesAggregator
Method Name: _save_current_image