16899da26094af88a108343921184853c5c9f26d,gpytorch/lazy/mul_lazy_tensor.py,MulLazyTensor,clone,#MulLazyTensor#,196
Before Change
return tuple(list(left_deriv_args) + list(right_deriv_args))
def clone(self):
args = [arg.clone() for arg in self.lazy_tensors]
kwargs = dict(( key, val.clone() if hasattr(val, "clone") else val ) for key, val in self._kwargs.items())
return self.__class__(*args, **kwargs)
def diag(self):
res = prod([lazy_tensor.diag() for lazy_tensor in self.lazy_tensors])
return res
After Change
return tuple(list(left_deriv_args) + list(right_deriv_args))
def clone(self):
return self.__class__(*tuple(lazy_tensor.clone() for lazy_tensor in self.lazy_tensors))
def detach_(self):
if hasattr(self, "_mul_args_memo"):
del self._mul_args_memo
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances Project Name: cornellius-gp/gpytorch
Commit Name: 16899da26094af88a108343921184853c5c9f26d
Time: 2018-12-11
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/mul_lazy_tensor.py
Class Name: MulLazyTensor
Method Name: clone
Project Name: cornellius-gp/gpytorch
Commit Name: 47a96974ab2d75fc20c76a6d6da20976ecad32bb
Time: 2017-10-02
Author: gpleiss@gmail.com
File Name: gpytorch/random_variables/random_variable.py
Class Name: RandomVariable
Method Name: cpu
Project Name: cornellius-gp/gpytorch
Commit Name: 47a96974ab2d75fc20c76a6d6da20976ecad32bb
Time: 2017-10-02
Author: gpleiss@gmail.com
File Name: gpytorch/random_variables/random_variable.py
Class Name: RandomVariable
Method Name: cuda