Skip to content

Commit 1120a7b

Browse files
committed
Convert mu to TensorVariable in Normal
Also remove commented out code
1 parent 910c3f9 commit 1120a7b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pymc/distributions/continuous.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -487,11 +487,7 @@ class Normal(Continuous):
487487
def dist(cls, mu=0, sigma=None, tau=None, **kwargs):
488488
tau, sigma = get_tau_sigma(tau=tau, sigma=sigma)
489489
sigma = pt.as_tensor_variable(sigma)
490-
491-
# tau = pt.as_tensor_variable(tau)
492-
# mean = median = mode = mu = pt.as_tensor_variable(floatX(mu))
493-
# variance = 1.0 / self.tau
494-
490+
mu = pt.as_tensor_variable(mu)
495491
return super().dist([mu, sigma], **kwargs)
496492

497493
def support_point(rv, size, mu, sigma):

0 commit comments

Comments
 (0)