24edeb20221803c592d9bc2c4f428fb9697358b7,gpytorch/inference/posterior_models/exact_gp_posterior.py,_ExactGPPosterior,__init__,#_ExactGPPosterior#Any#Any#Any#,10

Before Change


        self.prior_model = prior_model

        // Alpha cache - for computing mean
        self.register_buffer("alpha", torch.Tensor())

        // Buffers for conditioning on data
        if train_xs is not None and train_y is not None:

After Change


        self.prior_model = prior_model

        // Buffers for conditioning on data
        self.train_xs = [input.data if isinstance(input, Variable) else input for input in train_xs]
        self.train_y = train_y.data if isinstance(train_y, Variable) else train_y

    def forward(self, *inputs, **params):
        n = len(self.train_xs[0]) if hasattr(self, "train_xs") else 0
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 24edeb20221803c592d9bc2c4f428fb9697358b7
Time: 2017-08-25
Author: gpleiss@gmail.com
File Name: gpytorch/inference/posterior_models/exact_gp_posterior.py
Class Name: _ExactGPPosterior
Method Name: __init__


Project Name: cornellius-gp/gpytorch
Commit Name: 24edeb20221803c592d9bc2c4f428fb9697358b7
Time: 2017-08-25
Author: gpleiss@gmail.com
File Name: gpytorch/inference/posterior_models/variational_gp_posterior.py
Class Name: _VariationalGPPosterior
Method Name: __init__


Project Name: PetrochukM/PyTorch-NLP
Commit Name: 6a5916968838686e332fb68a10cb30222843fbd9
Time: 2018-04-26
Author: florian.joh.schaefer@gmail.com
File Name: torchnlp/word_to_vector/pretrained_word_vectors.py
Class Name: _PretrainedWordVectors
Method Name: __getitem__