f4503bb3a3be014b452f54d8e2d187bb6419f627,autokeras/layers.py,,to_real_layer,#Any#,168

Before Change


    if is_layer(layer, "Flatten"):
        return Flatten()
    if is_layer(layer, "GlobalAveragePooling"):
        return GlobalAveragePooling2D()


def to_stub_layer(layer, input_id, output_id):
    if is_conv_layer(layer):

After Change


    if is_layer(layer, "Dropout"):
        return torch.nn.Dropout2d(layer.rate)
    if is_layer(layer, "ReLU"):
        return torch.nn.ReLU()
    if is_layer(layer, "Softmax"):
        return torch.nn.Softmax()
    if is_layer(layer, "Flatten"):
        return TorchFlatten()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: f4503bb3a3be014b452f54d8e2d187bb6419f627
Time: 2018-08-01
Author: jhfjhfj1@gmail.com
File Name: autokeras/layers.py
Class Name:
Method Name: to_real_layer


Project Name: HyperGAN/HyperGAN
Commit Name: fc148e1a29e3d7893c438f701b8422225c95fc66
Time: 2020-07-10
Author: mikkel@255bits.com
File Name: examples/classification.py
Class Name: MNISTGenerator
Method Name: create


Project Name: HyperGAN/HyperGAN
Commit Name: 894a2b921ea0ba9969cec62b484d03ab706ad25a
Time: 2020-02-07
Author: martyn@255bits.com
File Name: hypergan/configurable_component.py
Class Name: ConfigurableComponent
Method Name: layer_conv


Project Name: HyperGAN/HyperGAN
Commit Name: 4991e9fedc1615297077091b192feed630b02f89
Time: 2020-02-07
Author: martyn@255bits.com
File Name: hypergan/configurable_component.py
Class Name: ConfigurableComponent
Method Name: layer_deconv