447c8e87ea3b270d0b3404ad962032752cfbc0ab,gluoncv/nn/splat.py,SplitAttentionConv,hybrid_forward,#SplitAttentionConv#Any#Any#,35

Before Change


            atten = F.sigmoid(atten).reshape((0, -1, 1, 1))
        if self.radix > 1:
            atten = F.split(atten, self.radix, axis=1)
            outs = [F.broadcast_mul(att, split) for (att, split) in zip(atten, splited)]
            out = sum(outs)
        else:
            out = F.broadcast_mul(atten, x)
        return out

After Change


            x = self.bn(x)
        x = self.relu(x)
        if self.radix > 1:
            splited = F.reshape(x.expand_dims(1), (0, self.radix, self.channels, 0, 0))
            gap = F.sum(splited, axis=1)
        else:
            gap = x
        gap = F.contrib.AdaptiveAvgPooling2D(gap, 1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: dmlc/gluon-cv
Commit Name: 447c8e87ea3b270d0b3404ad962032752cfbc0ab
Time: 2020-04-22
Author: zhangz6@cs.washington.edu
File Name: gluoncv/nn/splat.py
Class Name: SplitAttentionConv
Method Name: hybrid_forward


Project Name: deepmipt/DeepPavlov
Commit Name: 387bb02bb54d6bec3b3618e62a97aa8618acca8c
Time: 2019-04-30
Author: theaswert@yandex.ru
File Name: deeppavlov/models/ranking/siamese_model.py
Class Name: SiameseModel
Method Name: __call__


Project Name: dmlc/gluon-cv
Commit Name: 0fd13ccd7e61c9186127993080240c07b7ad905e
Time: 2019-10-28
Author: yizhu59@gmail.com
File Name: docs/tutorials/action_recognition/dive_deep_ucf101.py
Class Name:
Method Name: