We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with pm.Model() as model: a = pm.HalfNormal("a") c = pm.Uniform("c", lower=a - 1, upper=1) print("before") print("------") aesara.dprint(c) print() model.logpt print("after") print("-----") aesara.dprint(c)
before ------ uniform_rv{0, (0, 0), floatX, False}.1 [id A] 'c' |RandomStateSharedVariable(<RandomState(MT19937) at 0x7F649E351540>) [id B] |TensorConstant{[]} [id C] |TensorConstant{11} [id D] |Elemwise{sub,no_inplace} [id E] '' | |halfnormal_rv{0, (0, 0), floatX, False}.1 [id F] 'a' | | |RandomStateSharedVariable(<RandomState(MT19937) at 0x7F649D753040>) [id G] | | |TensorConstant{[]} [id H] | | |TensorConstant{11} [id I] | | |TensorConstant{0.0} [id J] | | |TensorConstant{1.0} [id K] | |TensorConstant{1} [id L] |TensorConstant{1.0} [id M] after ----- uniform_rv{0, (0, 0), floatX, False}.1 [id A] 'c' |RandomStateSharedVariable(<RandomState(MT19937) at 0x7F649E351540>) [id B] |TensorConstant{[]} [id C] |TensorConstant{11} [id D] |Elemwise{sub,no_inplace} [id E] '' | |Elemwise{exp,no_inplace} [id F] '' | | |a_log__ [id G] | |TensorConstant{1} [id H] |TensorConstant{1.0} [id I]
Maybe some graph.replace_all is changing the variables inplace when it should have made a copy first?
graph.replace_all
CC @brandonwillard
The text was updated successfully, but these errors were encountered:
This does not seem to be an issue in the aeppl implementation, so maybe we can just close this when #4887 is merged.
This does not seem to change the original variables:
import aeppl with pm.Model() as model: a = pm.Normal("a", sigma=1) b = pm.Normal("y", mu=a, sigma=1, observed=2) c = pm.Normal("z", mu=a + b) aesara.dprint(b) print() aeppl.joint_logprob(model.rvs_to_values) print() aesara.dprint(b)
Sorry, something went wrong.
XFAIL tests that depend on pymc-devs#5007
ff3b7f7
To unblock this PR/branch from the aeppl integration.
XFAIL tests that depend on #5007
3b763a1
aeppl
Closed via #4887
No branches or pull requests
Maybe some
graph.replace_all
is changing the variables inplace when it should have made a copy first?CC @brandonwillard
The text was updated successfully, but these errors were encountered: