1b809b3c9570d617cb26949e40b921b36e826580,gpytorch/lazy/kronecker_product_lazy_variable.py,,_t_matmul,#Any#Any#,44

Before Change


                .transpose(0, 1)
                .contiguous()
            )
            factor = lazy_var._t_matmul(res).permute(1, 3, 2, 0)
            res = factor.contiguous().view(n_batch, -1, n_cols)
        else:
            res = res.t().contiguous().view(n_cols, lazy_var.size(-2), -1)
            factor = lazy_var._t_matmul(res).permute(2, 1, 0)

After Change


            n_batch = res.size(0)
            res = res.view(n_batch, lazy_var.size(-2), -1)
            factor = lazy_var._t_matmul(res)
            factor = factor.view(n_batch, lazy_var.size(-1), -1, n_cols).transpose(-3, -2).contiguous().view(-1, n_cols)
            res = factor.contiguous().view(n_batch, -1, n_cols)
        else:
            res = res.view(lazy_var.size(-2), -1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 1b809b3c9570d617cb26949e40b921b36e826580
Time: 2018-08-31
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/kronecker_product_lazy_variable.py
Class Name:
Method Name: _t_matmul


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: erikwijmans/Pointnet2_PyTorch
Commit Name: 65a127f3d23527711259b6cdcce4e946b876f49c
Time: 2018-02-10
Author: ewijmans2@gmail.com
File Name: utils/pointnet2_modules.py
Class Name: PointnetSAModuleMSG
Method Name: forward