d259ffa98d90fb3100ffdab70c4db65c06b6b552,fairseq/models/fconv_self_att.py,FConvEncoder,reorder_encoder_out,#FConvEncoder#Any#Any#,243

Before Change


        )

        encoder_out["encoder_padding_mask"] = tuple(
            eo.index_select(0, new_order) for eo in encoder_out["encoder_padding_mask"]
        )

        if "pretrained" in encoder_out:

After Change


            eo.index_select(0, new_order) for eo in encoder_out["encoder_out"]
        )

        if encoder_out["encoder_padding_mask"] is not None:
            encoder_out["encoder_padding_mask"] = \
                encoder_out["encoder_padding_mask"].index_select(0, new_order)

        if "pretrained" in encoder_out:
            encoder_out["pretrained"]["encoder_out"] = tuple(
                eo.index_select(0, new_order)
                for eo in encoder_out["pretrained"]["encoder_out"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pytorch/fairseq
Commit Name: d259ffa98d90fb3100ffdab70c4db65c06b6b552
Time: 2019-01-16
Author: myleott@fb.com
File Name: fairseq/models/fconv_self_att.py
Class Name: FConvEncoder
Method Name: reorder_encoder_out


Project Name: rusty1s/pytorch_geometric
Commit Name: 64cce7880431427dbe69c0323986d800185d032b
Time: 2019-04-02
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/conv/message_passing.py
Class Name: MessagePassing
Method Name: propagate