3309415b660635c6efbc66e2c1e274127be4dff9,chainercv/links/model/vgg/vgg16.py,VGG16,__init__,#VGG16#Any#Any#Any#Any#Any#Any#,93

Before Change


                      "conv3_1", "conv3_2", "conv3_3", "conv4_1",
                      "conv4_2", "conv4_3", "conv5_1", "conv5_2",
                      "conv5_3", "fc6", "fc7", "fc8"]
        for name in list(layers.keys()):
            if name in link_names:
                layers[name] = layers[name]()

        super(VGG16, self).__init__(layers, layer_names)

        if pretrained_model in self._models:
            path = download_model(self._models[pretrained_model]["url"])

After Change


        // avoid doing so whenever possible.
        fc_layer_names = ["fc6", "fc6_relu", "fc6_dropout",
                          "fc7", "fc7_relu", "fc7_dropout", "fc8", "prob"]
        if (any([name in fc_layer_names for name in layer_names])
                or layer_names in fc_layer_names):
            fc_kwargs = {"initialW": constant.Zero(),
                         "initial_bias": constant.Zero()}
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: chainer/chainercv
Commit Name: 3309415b660635c6efbc66e2c1e274127be4dff9
Time: 2017-06-27
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/vgg/vgg16.py
Class Name: VGG16
Method Name: __init__


Project Name: RaRe-Technologies/gensim
Commit Name: 224566c8f7f1176357643750e867d135c123be42
Time: 2017-09-11
Author: eric.lind.7@gmail.com
File Name: gensim/models/wrappers/fasttext.py
Class Name: FastTextKeyedVectors
Method Name: __contains__


Project Name: mathics/Mathics
Commit Name: e56f91c9b60f561712d28faae3e4d047adc67760
Time: 2016-09-14
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/importexport.py
Class Name: Import
Method Name: apply