827e12f3b9506e0f78cc79445441cd9d1f25c055,chainercv/links/model/yolo/yolov3.py,YOLOv3,__call__,#YOLOv3#Any#,55

Before Change


        ys = []

        h = x
        hs = []
        for i, link in enumerate(self):
            h = link(h)
            if i in {35, 43, 51}:
                ys.append(h)

            if i in {14, 23, 33, 41}:
                hs.append(h)
            elif i in {35, 43}:
                h = hs.pop()
            elif i in {36, 44}:
                h = F.concat((_upsample(h), hs.pop()))

        return ys

After Change



    def __call__(self, x):
        ys = []
        for h, link in zip(self.extractor(x), self.subnet):
            h = link(h)
            h = F.reshape(h, (h.shape[0], 3, 1 + 4 + self.n_fg_class, -1))
            h = F.transpose(h, (0, 3, 1, 2))
            ys.append(h)
        return F.concat(ys)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: chainer/chainercv
Commit Name: 827e12f3b9506e0f78cc79445441cd9d1f25c055
Time: 2018-04-24
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/links/model/yolo/yolov3.py
Class Name: YOLOv3
Method Name: __call__


Project Name: keras-team/keras
Commit Name: 57612707c1434ed3b18f9cad5cf2e6dd8b7b3b7d
Time: 2015-11-02
Author: roller@cs.utexas.edu
File Name: keras/layers/core.py
Class Name: Merge
Method Name: __init__


Project Name: PetrochukM/PyTorch-NLP
Commit Name: 2a1a6851344172e0134f3c5f4f5c1021975f2812
Time: 2018-03-11
Author: petrochukm@gmail.com
File Name: torchnlp/samplers/bucket_batch_sampler.py
Class Name: BucketBatchSampler
Method Name: __iter__