Skip to content

Commit 9df27b3

Browse files
authored
fixes #3051
1 parent 7420495 commit 9df27b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc3/distributions/multivariate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def logp(self, value):
327327
TensorVariable
328328
"""
329329
quaddist, logdet, ok = self._quaddist(value)
330-
k = intX(value.shape[-1]).astype(theano.config.floatX)
330+
k = floatX(value.shape[-1])
331331
norm = - 0.5 * k * pm.floatX(np.log(2 * np.pi))
332332
return bound(norm - 0.5 * quaddist - logdet, ok)
333333

@@ -441,7 +441,7 @@ def logp(self, value):
441441
TensorVariable
442442
"""
443443
quaddist, logdet, ok = self._quaddist(value)
444-
k = intX(value.shape[-1]).astype(theano.config.floatX)
444+
k = floatX(value.shape[-1])
445445

446446
norm = (gammaln((self.nu + k) / 2.)
447447
- gammaln(self.nu / 2.)

0 commit comments

Comments
 (0)