We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43d819f commit 140568cCopy full SHA for 140568c
1 file changed
vbll/utils/distributions.py
@@ -110,7 +110,7 @@ def covariance(self):
110
@property
111
def inverse_covariance(self):
112
warnings.warn("Direct matrix inverse for dense covariances is O(N^3), consider using eg inverse weighted inner product")
113
- return tp(torch.linalg.inv(self.scale_tril)) @ self.scale_tril
+ return tp(torch.linalg.inv(self.scale_tril)) @ torch.linalg.inv(self.scale_tril)
114
115
116
def logdet_covariance(self):
0 commit comments