d37d08d9b2a806b3345fba41711c0d517b92a65c,chainercv/links/model/vgg/vgg16.py,VGG16Layers,predict,#VGG16Layers#Any#,215

Before Change


                n = y.shape[0] // 10
                y_shape = y.shape[1:]
                y = y.reshape((n, 10) + y_shape)
                y = self.xp.sum(y, axis=1) / 10
        return cuda.to_cpu(y)


def _max_pooling_2d(x):

After Change


            activations = self(imgs)

        if isinstance(activations, dict):
            for name, activation in activations.items():
                activation = activation.data

                if self.do_ten_crop:
                    activation = self._gather_ten_crop(activation)
                activations[name] = cuda.to_cpu(activations)
        else:
            activations = cuda.to_cpu(activations.data)
            if self.do_ten_crop:
                activations = self._gather_ten_crop(activations)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: chainer/chainercv
Commit Name: d37d08d9b2a806b3345fba41711c0d517b92a65c
Time: 2017-06-15
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/vgg/vgg16.py
Class Name: VGG16Layers
Method Name: predict


Project Name: GPflow/GPflow
Commit Name: bbc4e3ee65ab504be761e3b5487ce4ccdd589da0
Time: 2016-01-18
Author: james.hensman@gmail.com
File Name: GPflow/svgp.py
Class Name: SVGP
Method Name: build_likelihood


Project Name: GPflow/GPflow
Commit Name: a9273fb766562261b2ccedb635c71363fb10f06c
Time: 2016-01-18
Author: james.hensman@gmail.com
File Name: GPflow/svgp.py
Class Name: SVGP
Method Name: build_likelihood