7e9154fdc79281420d027c7892c395946622ee40,gpytorch/lazy/toeplitz_lazy_variable.py,ToeplitzLazyVariable,__getitem__,#ToeplitzLazyVariable#Any#,237
Before Change
return ToeplitzLazyVariable(self.c, J_left_new, C_left_new,
J_right_new, C_right_new, diag_new)
else:
if i[0] != i[1]:
raise RuntimeError("Slicing an uninterpolated Toeplitz matrix to be non-square is probably \
unintended. If that was the intent, use evaluate() and slice the full matrix.")
c_new = reverse(reverse(self.c)[i[0]])
After Change
C_left_new = self.c.data.new().resize_as_(J_left_new).fill_(1)
J_left_new = J_left_new.long()
// J[i[1], :] C[i[1], :]
J_right_new = self.c.data.new(range(len(self.c))[i[1]]).unsqueeze(1)
C_right_new = self.c.data.new().resize_as_(J_right_new).fill_(1)
J_right_new = J_right_new.long()
else:
// J[i[0], :], C[i[0], :]
J_left_new = self.J_left[i[0]]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: cornellius-gp/gpytorch
Commit Name: 7e9154fdc79281420d027c7892c395946622ee40
Time: 2017-08-25
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/toeplitz_lazy_variable.py
Class Name: ToeplitzLazyVariable
Method Name: __getitem__
Project Name: allenai/allennlp
Commit Name: 5acb5a785b9ed60743e6f687a96bd92dd4e88578
Time: 2017-11-29
Author: markn@allenai.org
File Name: allennlp/modules/seq2vec_encoders/pytorch_seq2vec_wrapper.py
Class Name: PytorchSeq2VecWrapper
Method Name: forward
Project Name: allenai/allennlp
Commit Name: 3b0ed358c084c2b619f5147f189d1f969f4fec75
Time: 2017-11-07
Author: markn@allenai.org
File Name: allennlp/modules/seq2seq_encoders/pytorch_seq2seq_wrapper.py
Class Name: PytorchSeq2SeqWrapper
Method Name: forward