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

Before Change


    if is_layer(layer, "Dropout"):
        return Dropout(layer.rate)
    if is_layer(layer, "Activation"):
        return Activation(layer.activation)
    if is_layer(layer, "Flatten"):
        return Flatten()
    if is_layer(layer, "GlobalAveragePooling"):
        return GlobalAveragePooling2D()

After Change


    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: 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: tensorflow/cleverhans
Commit Name: b8fe52f9320760236c097153c40708d8994a31c0
Time: 2017-08-15
Author: nicholas@carlini.com
File Name: tutorials/mnist_blackbox.py
Class Name:
Method Name: substitute_model