We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7289e7d + 101d372 commit 0e74f2bCopy full SHA for 0e74f2b
gpytorch/utils/cholesky.py
@@ -19,7 +19,7 @@ def _psd_safe_cholesky(A, out=None, jitter=None, max_tries=3):
19
settings.verbose_linalg.logger.debug(f"Running Cholesky on a matrix of size {A.shape}.")
20
21
if out is not None:
22
- out = (out, torch.empty(A.shape[:-2], dtype=torch.int32))
+ out = (out, torch.empty(A.shape[:-2], dtype=torch.int32, device=out.device))
23
24
L, info = torch.linalg.cholesky_ex(A, out=out)
25
if not torch.any(info):
0 commit comments