Skip to content

Commit 90d4f01

Browse files
committed
fix bug #2585
fix bug 2585 #2585
1 parent 8825cdd commit 90d4f01

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gpytorch/mlls/leave_one_out_pseudo_likelihood.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def forward(self, function_dist: MultivariateNormal, target: Tensor, *params) ->
5454
:param torch.Tensor target: :math:`\mathbf y` The target values
5555
:param dict kwargs: Additional arguments to pass to the likelihood's forward function.
5656
"""
57+
target = target.flatten()
5758
output = self.likelihood(function_dist, *params)
5859
m, L = output.mean, output.lazy_covariance_matrix.cholesky(upper=False)
5960
m = m.reshape(*target.shape)

0 commit comments

Comments
 (0)