c8c7fc9f0c1778f79f758a968def34671b5cded4,gpytorch/lazy/interpolated_lazy_tensor.py,InterpolatedLazyTensor,zero_mean_mvn_samples,#InterpolatedLazyTensor#Any#,619

Before Change


        )

    def zero_mean_mvn_samples(self, n_samples):
        return left_interp(
            self.left_interp_indices, self.left_interp_values, self.base_lazy_tensor.zero_mean_mvn_samples(n_samples)
        )

    def __getitem__(self, index):
        index = list(index) if isinstance(index, tuple) else [index]
        ndimension = self.ndimension()

After Change


        )

    def zero_mean_mvn_samples(self, num_samples):
        if self.ndimension() == 3:
            res = left_interp(
                self.left_interp_indices, self.left_interp_values,
                self.base_lazy_tensor.zero_mean_mvn_samples(num_samples).permute(1, 2, 0).contiguous()
            )
            return res.permute(2, 0, 1).contiguous()
        else:
            res = left_interp(
                self.left_interp_indices, self.left_interp_values,
                self.base_lazy_tensor.zero_mean_mvn_samples(num_samples).permute(1, 0).contiguous()
            )
            return res.permute(1, 0).contiguous()

    def __getitem__(self, index):
        index = list(index) if isinstance(index, tuple) else [index]
        ndimension = self.ndimension()
        index += [slice(None, None, None)] * (ndimension - len(index))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: c8c7fc9f0c1778f79f758a968def34671b5cded4
Time: 2018-09-17
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/interpolated_lazy_tensor.py
Class Name: InterpolatedLazyTensor
Method Name: zero_mean_mvn_samples


Project Name: cornellius-gp/gpytorch
Commit Name: fa6163650ac882cf343f63f0cab852878342281e
Time: 2018-07-23
Author: gpleiss@gmail.com
File Name: gpytorch/kernels/index_kernel.py
Class Name: IndexKernel
Method Name: forward


Project Name: cornellius-gp/gpytorch
Commit Name: 60a342edc8b501802135df44869353cc8604d838
Time: 2018-01-11
Author: gpleiss@gmail.com
File Name: gpytorch/kernels/kernel.py
Class Name: Kernel
Method Name: __call__


Project Name: cornellius-gp/gpytorch
Commit Name: 70b1a566ce1dab1ab278f99f15cd4f157ad3ee5c
Time: 2018-09-28
Author: gpleiss@gmail.com
File Name: gpytorch/models/exact_gp.py
Class Name: ExactGP
Method Name: __call__