Skip to content

Commit f3f112f

Browse files
authored
Merge pull request #2709 from benediktjohannes/patch-6
Fix the same typo in other class as well
2 parents 689913b + c2ab1b1 commit f3f112f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gpytorch/variational/variational_strategy.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,8 @@ def pseudo_points(self) -> Tuple[Tensor, Tensor]:
210210
# retrieve the variational mean, m and covariance matrix, S.
211211
if not isinstance(self._variational_distribution, CholeskyVariationalDistribution):
212212
raise NotImplementedError(
213-
"Only CholeskyVariationalDistribution has pseudo-point support currently, ",
214-
"but your _variational_distribution is a ",
215-
self._variational_distribution.__name__,
213+
"Only CholeskyVariationalDistribution has pseudo-point support currently, "
214+
f"but your _variational_distribution is a {type(self._variational_distribution).__name__}"
216215
)
217216

218217
var_cov_root = TriangularLinearOperator(self._variational_distribution.chol_variational_covar)

0 commit comments

Comments
 (0)