Skip to content

Commit 689913b

Browse files
authored
Merge pull request #2705 from benediktjohannes/patch-2
Fix "distribution" typing
2 parents 1726773 + 43486b0 commit 689913b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gpytorch/variational/_variational_strategy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def forward(
144144
:param inducing_values: Samples of the inducing function values :math:`\mathbf u`
145145
(or the mean of the distribution :math:`q(\mathbf u)` if q is a Gaussian.
146146
:param variational_inducing_covar: If
147-
the distribuiton :math:`q(\mathbf u)` is
147+
the distribution :math:`q(\mathbf u)` is
148148
Gaussian, then this variable is the covariance matrix of that Gaussian.
149149
Otherwise, it will be None.
150150
:param diag: If true and this module is in train mode, this method is allowed to skip the off-diagonal entries
@@ -377,6 +377,6 @@ def __call__(self, x: Tensor, prior: bool = False, diag: bool = True, **kwargs)
377377
)
378378
else:
379379
raise RuntimeError(
380-
f"Invalid variational distribuition ({type(variational_dist_u)}). "
380+
f"Invalid variational distribution ({type(variational_dist_u)}). "
381381
"Expected a multivariate normal or a delta distribution."
382382
)

0 commit comments

Comments
 (0)