Skip to content

Commit 7e57248

Browse files
Use a more robust approach to static shape inference in Dirichlet
1 parent a90603e commit 7e57248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc3/distributions/multivariate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def __init__(self, a, transform=transforms.stick_breaking,
498498
DeprecationWarning
499499
)
500500
try:
501-
kwargs['shape'] = get_test_value(tt.shape(a))
501+
kwargs['shape'] = np.shape(get_test_value(a))
502502
except AttributeError:
503503
pass
504504

0 commit comments

Comments
 (0)