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.
1 parent 82b3ab4 commit 8fbf737Copy full SHA for 8fbf737
bayesflow/distributions/diagonal_normal.py
@@ -91,7 +91,7 @@ def log_prob(self, samples: Tensor, *, normalize: bool = True) -> Tensor:
91
result = -0.5 * ops.sum((samples - self._mean) ** 2 / self._std**2, axis=-1)
92
93
if normalize:
94
- log_normalization_constant = -0.5 * ops.sum(self.dims) * math.log(2.0 * math.pi) - ops.sum(
+ log_normalization_constant = -0.5 * np.sum(self.dims) * math.log(2.0 * math.pi) - ops.sum(
95
ops.log(self._std)
96
)
97
result += log_normalization_constant
0 commit comments