e89329d6657e0dbc35d93f663363141ac2da5cdb,fairseq/modules/linearized_convolution.py,LinearizedConvolution,forward,#LinearizedConvolution#Any#Any#,29
Before Change
input_buffer[:, :-1, :] = input_buffer[:, 1:, :].clone()
// append next input
input_buffer[:, -1, :] = input[:, -1, :]
input = utils.volatile_variable(input_buffer)
with utils.maybe_no_grad():
output = F.linear(input.view(bsz, -1), weight, self.bias)
return output.view(bsz, 1, -1)
After Change
// append next input
input_buffer[:, -1, :] = input[:, -1, :]
input = input_buffer
with torch.no_grad():
output = F.linear(input.view(bsz, -1), weight, self.bias)
return output.view(bsz, 1, -1)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: elbayadm/attn2d
Commit Name: e89329d6657e0dbc35d93f663363141ac2da5cdb
Time: 2018-06-15
Author: myleott@fb.com
File Name: fairseq/modules/linearized_convolution.py
Class Name: LinearizedConvolution
Method Name: forward
Project Name: pytorch/fairseq
Commit Name: e89329d6657e0dbc35d93f663363141ac2da5cdb
Time: 2018-06-15
Author: myleott@fb.com
File Name: fairseq/sequence_generator.py
Class Name: SequenceGenerator
Method Name: _decode
Project Name: pytorch/fairseq
Commit Name: e89329d6657e0dbc35d93f663363141ac2da5cdb
Time: 2018-06-15
Author: myleott@fb.com
File Name: fairseq/modules/linearized_convolution.py
Class Name: LinearizedConvolution
Method Name: forward