Skip to content

Commit

Permalink
fix bug #2585
Browse files Browse the repository at this point in the history
fix bug 2585 #2585
  • Loading branch information
sahakpetros committed Sep 14, 2024
1 parent 8825cdd commit 90d4f01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gpytorch/mlls/leave_one_out_pseudo_likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def forward(self, function_dist: MultivariateNormal, target: Tensor, *params) ->
:param torch.Tensor target: :math:`\mathbf y` The target values
:param dict kwargs: Additional arguments to pass to the likelihood's forward function.
"""
target = target.flatten()
output = self.likelihood(function_dist, *params)
m, L = output.mean, output.lazy_covariance_matrix.cholesky(upper=False)
m = m.reshape(*target.shape)
Expand Down

0 comments on commit 90d4f01

Please sign in to comment.