50fdf591464ca63940a2c1c5e7057b2f4df034f5,fairseq/models/fconv.py,FConvDecoder,forward,#FConvDecoder#Any#Any#,187
Before Change
self.fc3 = Linear(out_embed_dim, num_embeddings, dropout=dropout)
def forward(self, input_tokens, encoder_out):
positions = Variable(make_positions(input_tokens.data, self.dictionary.pad() ,
left_pad=LanguagePairDataset.LEFT_PAD_TARGET))
return self._forward(input_tokens, positions, encoder_out)
def incremental_forward(self, input_tokens, encoder_out):
Forward pass for one time step.
// positions is the same for every token when decoding a single step
After Change
def forward(self, input_tokens, encoder_out):
if self._is_incremental_eval:
return self.incremental_forward(input_tokens, encoder_out)
else:
return self.batch_forward(input_tokens, encoder_out)
def batch_forward(self, input_tokens, encoder_out):
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 5
Instances Project Name: elbayadm/attn2d
Commit Name: 50fdf591464ca63940a2c1c5e7057b2f4df034f5
Time: 2017-11-11
Author: myleott@fb.com
File Name: fairseq/models/fconv.py
Class Name: FConvDecoder
Method Name: forward
Project Name: pytorch/fairseq
Commit Name: 1bba712622b8ae4efb3eb793a8a40da386fe11d0
Time: 2021-03-22
Author: taylanbil@gmail.com
File Name: fairseq/data/bucket_pad_length_dataset.py
Class Name: BucketPadLengthDataset
Method Name: __getitem__
Project Name: arraiy/torchgeometry
Commit Name: b51bfe75d02eeab204501f2695845ff28f4a87c2
Time: 2019-06-25
Author: edgar.riba@gmail.com
File Name: kornia/filters/gaussian.py
Class Name: GaussianBlur2d
Method Name: forward
Project Name: tensorflow/tpu
Commit Name: aa82722bc11e23d09f7bfc14163dc281d7bf257d
Time: 2020-05-12
Author: gardener@tensorflow.org
File Name: models/official/detection/modeling/architecture/nn_ops.py
Class Name:
Method Name: fixed_padding
Project Name: pytorch/audio
Commit Name: 101e0d5f3843d144fb704ab93b11ac3b17d239a2
Time: 2019-05-16
Author: jamarshon@fb.com
File Name: torchaudio/transforms.py
Class Name: PadTrim
Method Name: __call__