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

Before Change


    if is_layer(layer, "Pooling"):
        return MaxPooling2D(padding="same")
    if is_layer(layer, "BatchNormalization"):
        return BatchNormalization()
    if is_layer(layer, "Concatenate"):
        return Concatenate()
    if is_layer(layer, "Add"):
        return Add()

After Change


    if is_layer(layer, "Dense"):
        return torch.nn.Linear(layer.input_units, layer.units)
    if is_layer(layer, "Conv"):
        return torch.nn.Conv2d(layer.input_channel,
                               layer.filters,
                               layer.kernel_size,
                               padding=layer.kernel_size / 2)
    if is_layer(layer, "Pooling"):
        return torch.nn.MaxPool2d(2)
    if is_layer(layer, "BatchNormalization"):
        return torch.nn.BatchNorm2d(layer.num_features)
    if is_layer(layer, "Concatenate"):
        return TorchConcatenate()
    if is_layer(layer, "Add"):
        return TorchAdd()
    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: 3

Non-data size: 8

Instances


Project Name: keras-team/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: keras-team/autokeras
Commit Name: 4b83c1070cebd0d996ba2cc69779dcb66d5d0032
Time: 2018-05-29
Author: jhfjhfj1@gmail.com
File Name: autokeras/generator.py
Class Name: DefaultClassifierGenerator
Method Name: generate


Project Name: keras-team/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: keras-team/autokeras
Commit Name: 7f30b2403fadc4eaad48ceaf6154a626f477f8c8
Time: 2018-05-26
Author: jin@tamu.edu
File Name: autokeras/generator.py
Class Name: DefaultClassifierGenerator
Method Name: generate