9ea14875825b2ab63a43ad2f0f5159d99df86d02,model.py,Lookahead,forward,#Lookahead#,122

Before Change


        // for each seq-batch-feature combination
        x = [x[i:i + self.context + 1] for i in range(seq_len)]  // TxLxNxH - sequence, context, batch, feature
        x = torch.stack(x)
        x = x.permute(0, 2, 3, 1)  // TxNxHxL - sequence, batch, feature, context

        x = torch.mul(x, self.weight).sum(dim=3)
        return x

After Change


                              groups=self.n_features, padding=0, bias=None)

    def forward(self, x):
        x = x.transpose(0, 1).transpose(1, 2)
        x = F.pad(x, pad=self.pad, value=0)
        x = self.conv(x)
        x = x.transpose(1, 2).transpose(0, 1).contiguous()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: SeanNaren/deepspeech.pytorch
Commit Name: 9ea14875825b2ab63a43ad2f0f5159d99df86d02
Time: 2019-07-29
Author: rasmus.arpe@gmail.com
File Name: model.py
Class Name: Lookahead
Method Name: forward


Project Name: interactiveaudiolab/nussl
Commit Name: 2ffbfa3a6bd3b8de8e21a762489346054dcd9ccc
Time: 2020-03-12
Author: prem@u.northwestern.edu
File Name: nussl/separation/deep/deep_mask_estimation.py
Class Name: DeepMaskEstimation
Method Name: extract_features


Project Name: akanimax/pro_gan_pytorch
Commit Name: 68dab2a79a136a1b90181d44300c22b8b6145f52
Time: 2019-04-28
Author: akanimax@gmail.com
File Name: samples/demo.py
Class Name:
Method Name: get_image


Project Name: Alexander-H-Liu/End-to-end-ASR-Pytorch
Commit Name: 5fc0afb315746846e099897eb7ecdfa2397201cf
Time: 2019-08-15
Author: alexliu36@gmail.com
File Name: src/solver.py
Class Name: Trainer
Method Name: exec