4c6458b841bb49610b5cf6b9fbab94df5cad85ee,gpytorch/lazy/toeplitz_lazy_tensor.py,ToeplitzLazyTensor,_quad_form_derivative,#ToeplitzLazyTensor#Any#Any#,20
Before Change
res = (sym_toeplitz_derivative_quadratic_form(left_vecs, right_vecs),)
if self.column.ndimension() == 1 and res[0].ndimension() == 2:
res = (res[0].sum(0),)
return res
def _size(self):
if self.column.ndimension() == 2:
After Change
res = sym_toeplitz_derivative_quadratic_form(left_vecs, right_vecs)
// Collapse any expanded broadcast dimensions
if res.dim() > self.column.dim():
res = res.view(-1, *self.column.shape).sum(0)
return res,
def _size(self):
return torch.Size((*self.column.shape, self.column.size(-1)))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: cornellius-gp/gpytorch
Commit Name: 4c6458b841bb49610b5cf6b9fbab94df5cad85ee
Time: 2019-01-23
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/toeplitz_lazy_tensor.py
Class Name: ToeplitzLazyTensor
Method Name: _quad_form_derivative
Project Name: rusty1s/pytorch_geometric
Commit Name: 1697ad9a5cb50f61583735f8e442f80fc72a473c
Time: 2018-05-12
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/transform/spherical.py
Class Name: Spherical
Method Name: __call__
Project Name: OpenNMT/OpenNMT-py
Commit Name: 614c41e7f05d274991d95271c49a87af3fa2cf49
Time: 2017-12-22
Author: skywalker@postech.edu
File Name: onmt/Loss.py
Class Name: NMTLossCompute
Method Name: compute_loss