96c2fe1de80c9752b992c4578a3ce46028d21fc5,python/caffe/net_spec.py,Function,_get_name,#Function#,111

Before Change


    def _get_name(self, top, names, autonames):
        if top not in names:
            autonames[top.fn.type_name] += 1
            names[top] = top.fn.type_name + str(autonames[top.fn.type_name])
        return names[top]

    def _to_proto(self, layers, names, autonames):
        if self in layers:

After Change


    def _get_name(self, names, autonames):
        if self not in names and self.ntop > 0:
            names[self] = self._get_top_name(self.tops[0], names, autonames)
        elif self not in names:
            autonames[self.type_name] += 1
            names[self] = self.type_name + str(autonames[self.type_name])
        return names[self]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: BVLC/caffe
Commit Name: 96c2fe1de80c9752b992c4578a3ce46028d21fc5
Time: 2015-07-23
Author: jonlong@cs.berkeley.edu
File Name: python/caffe/net_spec.py
Class Name: Function
Method Name: _get_name


Project Name: explosion/thinc
Commit Name: e35980f72ece321c80ac40474a1f8918135379ce
Time: 2020-01-29
Author: tiangolo@gmail.com
File Name: thinc/tests/mypy/test_mypy.py
Class Name:
Method Name: test_mypy_results


Project Name: scikit-optimize/scikit-optimize
Commit Name: dbc0f24b39c2e2725682485a68586b3f0fa6bafc
Time: 2017-07-02
Author: iaroslav.email@gmail.com
File Name: skopt/searchcv.py
Class Name: BayesSearchCV
Method Name: step