Skip to content

Commit 07fa44d

Browse files
settings.debug().on() -> settings.debug.on() (#2704)
Co-authored-by: Kaiwen Wu <[email protected]>
1 parent 51e7c79 commit 07fa44d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gpytorch/models/exact_gp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def __call__(self, *args, **kwargs):
284284
elif settings.prior_mode.on() or self.train_inputs is None or self.train_targets is None:
285285
full_inputs = args
286286
full_output = super().__call__(*full_inputs, **kwargs)
287-
if settings.debug().on():
287+
if settings.debug.on():
288288
if not isinstance(full_output, MultivariateNormal):
289289
raise RuntimeError("ExactGP.forward must return a MultivariateNormal")
290290
return full_output
@@ -326,7 +326,7 @@ def __call__(self, *args, **kwargs):
326326

327327
# Get the joint distribution for training/test data
328328
full_output = super().__call__(*full_inputs, **kwargs)
329-
if settings.debug().on():
329+
if settings.debug.on():
330330
if not isinstance(full_output, MultivariateNormal):
331331
raise RuntimeError("ExactGP.forward must return a MultivariateNormal")
332332
full_mean, full_covar = full_output.loc, full_output.lazy_covariance_matrix

0 commit comments

Comments
 (0)