56f9ec3c389a52a5786afd8152c4328d5ebea32a,fairseq/modules/linearized_convolution.py,LinearizedConvolution,forward,#LinearizedConvolution#Any#Any#,28

Before Change


                between time steps, call reorder_incremental_state.
        
        if incremental_state is None:
            return super().forward(input)

        // reshape weight
        weight = self._get_linearized_weight()
        kw = self.kernel_size[0]

After Change


                between time steps, call reorder_incremental_state.
        
        if incremental_state is None:
            output = super().forward(input)
            if self.kernel_size[0] > 1 and self.padding[0] > 0:
                // remove future timesteps added by padding
                output = output[:-self.padding[0], :, :]
            return output

        // reshape weight
        weight = self._get_linearized_weight()
        kw = self.kernel_size[0]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: elbayadm/attn2d
Commit Name: 56f9ec3c389a52a5786afd8152c4328d5ebea32a
Time: 2018-03-01
Author: jamesreed@fb.com
File Name: fairseq/modules/linearized_convolution.py
Class Name: LinearizedConvolution
Method Name: forward


Project Name: HyperGAN/HyperGAN
Commit Name: f7dc6fc130bfbcbfbb1a68eacbc2948be4b40859
Time: 2020-02-14
Author: mikkel@255bits.com
File Name: hypergan/samplers/aligned_sampler.py
Class Name: AlignedSampler
Method Name: _sample