Skip to content

Commit 00457a8

Browse files
ArmavicaricardoV94
authored andcommitted
Fix dtype bug in joint_logp
Thanks to @brandonwillard in aesara-devs/aesara#1149
1 parent 92ce135 commit 00457a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/distributions/logprob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def joint_logp(
187187
# Else we assume we were given a single rv and respective value
188188
elif not isinstance(rv_values, Mapping):
189189
if len(var) == 1:
190-
rv_values = {var[0]: at.as_tensor_variable(rv_values).astype(var[0].type)}
190+
rv_values = {var[0]: at.as_tensor_variable(rv_values).astype(var[0].dtype)}
191191
else:
192192
raise ValueError("rv_values must be a dict if more than one var is requested")
193193

0 commit comments

Comments
 (0)