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: 5
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: rusty1s/pytorch_geometric
Commit Name: 17e4da6dbcc6b6706888cb23333bf1224fd91514
Time: 2017-11-16
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/sparse/mm.py
Class Name: _Mm
Method Name: backward
Project Name: explosion/thinc
Commit Name: 6d506202920745291cc89d1e31de62ddcc3e375a
Time: 2020-01-12
Author: honnibal+gh@gmail.com
File Name: thinc/layers/lstm.py
Class Name:
Method Name: LSTM