We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92ce135 commit 00457a8Copy full SHA for 00457a8
pymc/distributions/logprob.py
@@ -187,7 +187,7 @@ def joint_logp(
187
# Else we assume we were given a single rv and respective value
188
elif not isinstance(rv_values, Mapping):
189
if len(var) == 1:
190
- rv_values = {var[0]: at.as_tensor_variable(rv_values).astype(var[0].type)}
+ rv_values = {var[0]: at.as_tensor_variable(rv_values).astype(var[0].dtype)}
191
else:
192
raise ValueError("rv_values must be a dict if more than one var is requested")
193
0 commit comments