b8786dc2aadb56bb549f92ed542875096868bdd5,fairseq/models/speech_to_text/modules/augmented_memory_attention.py,SequenceEncoder,forward,#SequenceEncoder#Any#Any#Any#,390

Before Change


        if not encoder_padding_mask.any():
            encoder_padding_mask = None

        return EncoderOut(
            encoder_out=encoder_out,
            encoder_padding_mask=encoder_padding_mask,
            encoder_embedding=None,
            encoder_states=states,
            src_tokens=None,
            src_lengths=None,
        )

    def incremental_encode(
        self,
        seg_src_tokens: Tensor,

After Change


        if not encoder_padding_mask.any():
            encoder_padding_mask = None

        return {
            "encoder_out": [encoder_out],
            "encoder_padding_mask": [encoder_padding_mask],
            "encoder_embedding": [],
            "encoder_states": [states],
            "src_tokens": [],
            "src_lengths": [],
        }

    def incremental_encode(
        self,
        seg_src_tokens: Tensor,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pytorch/fairseq
Commit Name: b8786dc2aadb56bb549f92ed542875096868bdd5
Time: 2021-03-02
Author: spopuri@fb.com
File Name: fairseq/models/speech_to_text/modules/augmented_memory_attention.py
Class Name: SequenceEncoder
Method Name: forward


Project Name: pytorch/fairseq
Commit Name: add65adcc53a927f99a717d90a9672765237d937
Time: 2020-11-16
Author: juancarabina@fb.com
File Name: examples/pointer_generator/pointer_generator_src/transformer_pg.py
Class Name: TransformerPointerGeneratorEncoder
Method Name: forward


Project Name: pytorch/fairseq
Commit Name: 89a4d2bc70fd680c4768803d20707ef65df89b0f
Time: 2021-01-05
Author: changhan@fb.com
File Name: fairseq/models/speech_to_text/s2t_transformer.py
Class Name: S2TTransformerEncoder
Method Name: forward