Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahanmr authored Mar 18, 2020
1 parent 7420495 commit 9df27b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymc3/distributions/multivariate.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def logp(self, value):
TensorVariable
"""
quaddist, logdet, ok = self._quaddist(value)
k = intX(value.shape[-1]).astype(theano.config.floatX)
k = floatX(value.shape[-1])
norm = - 0.5 * k * pm.floatX(np.log(2 * np.pi))
return bound(norm - 0.5 * quaddist - logdet, ok)

Expand Down Expand Up @@ -441,7 +441,7 @@ def logp(self, value):
TensorVariable
"""
quaddist, logdet, ok = self._quaddist(value)
k = intX(value.shape[-1]).astype(theano.config.floatX)
k = floatX(value.shape[-1])

norm = (gammaln((self.nu + k) / 2.)
- gammaln(self.nu / 2.)
Expand Down

0 comments on commit 9df27b3

Please sign in to comment.