Skip to content

Commit 50d0e02

Browse files
burnpancktwiecki
authored andcommitted
fix computation of test-values when distribution parameters are given by a theano TensorConstant (#1554)
1 parent 0bdff96 commit 50d0e02

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pymc3/distributions/distribution.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ def getattr_value(self, val):
7171
if isinstance(val, tt.TensorVariable):
7272
return val.tag.test_value
7373

74+
if isinstance(val, tt.TensorConstant):
75+
return val.value
76+
7477
return val
7578

7679

0 commit comments

Comments
 (0)