Skip to content

Commit

Permalink
Fix batching bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wesselb committed Apr 22, 2022
1 parent cbeabe7 commit 18f0e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stheno/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def kl(self, other: "Normal"):
scalar: KL divergence.
"""
return (
B.iqf_diag(other.var, other.mean - self.mean)[0]
B.iqf_diag(other.var, other.mean - self.mean)[..., 0]
+ B.ratio(self.var, other.var)
+ B.logdet(other.var)
- B.logdet(self.var)
Expand Down

0 comments on commit 18f0e67

Please sign in to comment.