979b8c9efa551e8c948a4aca145367a2d87ac8d6,gpytorch/distributions/multivariate_normal.py,_MultivariateNormalBase,expand,#_MultivariateNormalBase#Any#,63

Before Change


            self.__unbroadcasted_scale_tril = ust

    def expand(self, batch_size):
        new_loc = self.loc.expand(torch.Size(list(batch_size) + [self.loc.size(-1)]))
        new_covar = self._covar.expand(torch.Size(list(batch_size) + list(self._covar.shape[-2:])))
        res = self.__class__(new_loc, new_covar)
        return res

After Change



    def expand(self, batch_size):

        new_loc = self.loc.expand(torch.Size(batch_size) + self.loc.shape[-1:])
        new_covar = self._covar.expand(torch.Size(batch_size) + self._covar.shape[-2:])
        res = self.__class__(new_loc, new_covar)
        return res
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 979b8c9efa551e8c948a4aca145367a2d87ac8d6
Time: 2019-02-26
Author: balandat@fb.com
File Name: gpytorch/distributions/multivariate_normal.py
Class Name: _MultivariateNormalBase
Method Name: expand


Project Name: cornellius-gp/gpytorch
Commit Name: b8b0e1cddc1e72dfec1739a3eb8e8b601c7a707a
Time: 2019-04-15
Author: gardner.jake@gmail.com
File Name: gpytorch/lazy/lazy_evaluated_kernel_tensor.py
Class Name: LazyEvaluatedKernelTensor
Method Name: _size


Project Name: cornellius-gp/gpytorch
Commit Name: 44826d877d755e7df1d681d680583911d6d2032e
Time: 2019-04-15
Author: balandat@fb.com
File Name: gpytorch/lazy/lazy_evaluated_kernel_tensor.py
Class Name: LazyEvaluatedKernelTensor
Method Name: _size