e95aef6716ee8b2e0b647468ffe7f5bf37d4ce47,test/lazy/test_mul_lazy_tensor.py,TestMulLazyTensorMultiBatch,evaluate_lazy_tensor,#TestMulLazyTensorMultiBatch#Any#,101
Before Change
def evaluate_lazy_tensor(self, lazy_tensor):
diag_tensor = lazy_tensor._diag_tensor.evaluate()
tensors = [lt.evaluate() for lt in lazy_tensor._lazy_tensor.lazy_tensors]
res = tensors[0]
for tensor in tensors[1:]:
res = res * tensor
res = res + diag_tensor
return res
def test_inv_quad_logdet(self):
After Change
def evaluate_lazy_tensor(self, lazy_tensor):
diag_tensor = lazy_tensor._diag_tensor.evaluate()
res = torch.mul(
lazy_tensor._lazy_tensor.left_lazy_tensor.evaluate(),
lazy_tensor._lazy_tensor.right_lazy_tensor.evaluate()
)
res = res + diag_tensor
return res
def test_inv_quad_logdet(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 21
Instances
Project Name: cornellius-gp/gpytorch
Commit Name: e95aef6716ee8b2e0b647468ffe7f5bf37d4ce47
Time: 2019-03-18
Author: gpleiss@gmail.com
File Name: test/lazy/test_mul_lazy_tensor.py
Class Name: TestMulLazyTensorMultiBatch
Method Name: evaluate_lazy_tensor
Project Name: cornellius-gp/gpytorch
Commit Name: e95aef6716ee8b2e0b647468ffe7f5bf37d4ce47
Time: 2019-03-18
Author: gpleiss@gmail.com
File Name: test/lazy/test_mul_lazy_tensor.py
Class Name: TestMulLazyTensor
Method Name: evaluate_lazy_tensor
Project Name: cornellius-gp/gpytorch
Commit Name: e95aef6716ee8b2e0b647468ffe7f5bf37d4ce47
Time: 2019-03-18
Author: gpleiss@gmail.com
File Name: test/lazy/test_mul_lazy_tensor.py
Class Name: TestMulLazyTensorBatch
Method Name: evaluate_lazy_tensor
Project Name: cornellius-gp/gpytorch
Commit Name: e95aef6716ee8b2e0b647468ffe7f5bf37d4ce47
Time: 2019-03-18
Author: gpleiss@gmail.com
File Name: test/lazy/test_mul_lazy_tensor.py
Class Name: TestMulLazyTensorMultiBatch
Method Name: evaluate_lazy_tensor