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 c9832a7 commit 2c946faCopy full SHA for 2c946fa
pymc/aesaraf.py
@@ -376,6 +376,9 @@ def poulate_replacements(rv, replacements):
376
if transform is not None:
377
# We want to replace uses of the RV by the back-transformation of its value
378
value = transform.backward(value, *rv.owner.inputs)
379
+ # The value may have a less precise type than the rv. In this case
380
+ # filter_variable will add a SpecifyShape to ensure they are consistent
381
+ value = rv.type.filter_variable(value, allow_convert=True)
382
value.name = rv.name
383
384
replacements[rv] = value
0 commit comments