Skip to content

Commit

Permalink
leaves: Fix missing self object
Browse files Browse the repository at this point in the history
  • Loading branch information
braun-steven committed Nov 2, 2023
1 parent dfed5db commit 1523ce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simple_einet/layers/distributions/multivariate_normal.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def scale_tril(self):

def _get_base_distribution(self, ctx: SamplingContext = None, marginalized_scopes = None):
# View means and scale_tril
means = self.means.view(self._num_dists, cardinality)
scale_tril = self.scale_tril.view(self._num_dists, cardinality, cardinality)
means = self.means.view(self._num_dists, self.cardinality)
scale_tril = self.scale_tril.view(self._num_dists, self.cardinality, self.cardinality)


mv = CustomMultivariateNormalDist(
Expand Down

0 comments on commit 1523ce8

Please sign in to comment.