Skip to content

Commit eb3901d

Browse files
committed
Modify rng method to use aesara multivariate_normal.rng_fn
1 parent 91e2dd1 commit eb3901d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pymc3/distributions/multivariate.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,7 @@ def rng_fn(cls, rng, nu, mu, cov, size):
279279
# Add distribution shape to chi2 samples
280280
chi2_samples = chi2_samples.reshape(chi2_samples.shape + (1,) * len(mu.shape))
281281

282-
mv_samples = pm.MvNormal.dist(
283-
mu=np.zeros_like(mu), cov=cov, size=size, rng=aesara.shared(rng)
284-
).eval()
282+
mv_samples = multivariate_normal.rng_fn(rng=rng, mean=np.zeros_like(mu), cov=cov, size=size)
285283

286284
size = tuple(size or ())
287285
if size:

0 commit comments

Comments
 (0)