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, "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: 4

Non-data size: 3

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: 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


Project Name: deepchem/deepchem
Commit Name: ef3c40a4542966e2dac08cc51710ddedc31fd2d9
Time: 2019-06-10
Author: peastman@stanford.edu
File Name: deepchem/models/tensorgraph/progressive_multitask.py
Class Name: ProgressiveMultitaskClassifier
Method Name: create_output