Closed ricardoV94 closed 1 month ago
CC @tomicapretto
What's the point of wrapping Deterministics with a useless identity Op?
What's the point of wrapping Deterministics with a useless identity Op?
So they are different PyTensor variables, when you do pm.Deterministic("y", pm.Normal("x"))
or repeated Deterministic
on the same variables
The copy
was added in https://github.com/pymc-devs/pymc/pull/3170
Looks like a PyTensor rewrite bug, it thinks it has a variable but it has a list, and it's trying to call .dtype on it
@tomicapretto the issue you reported is independent of these changes, and should be fixed by https://github.com/pymc-devs/pytensor/pull/773
I'm going to go ahead and merge this
When using
Deterministic
, variables get wrapped in anidentity
operation. When attempting to define anicdf
, the logp graph rewrites would remove this useless operation from the graph of the underlying RV and cause a mismatch between explict and implicit inputs of the inner graph of TruncatedRVDescription
Related Issue
Checklist
Type of change
📚 Documentation preview 📚: https://pymc--7315.org.readthedocs.build/en/7315/