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
This is a part of the issues reported in #1981. Running the following test will raise an error/xfail.
JAX_CHECK_TRACER_LEAKS=1 pytest -vs test/contrib/test_infer_discrete.py::test_scan_hmm_smoke
The test should pass.
The text was updated successfully, but these errors were encountered:
The reason seems to be caused by this line
numpyro/numpyro/contrib/funsor/discrete.py
Line 59 in b766706
where the stateful adjoint tape is not compatible with jax scan.
Switching back to lazy interpretations seems to fix the leakage but it makes some tests failing.
- with funsor.adjoint.AdjointTape() as tape: + with funsor.interpretations.lazy: with block(), enum(first_available_dim=first_available_dim): log_prob, model_tr, log_measures = _enum_log_density( model, args, kwargs, {}, sum_op, prod_op ) with approx: - approx_factors = tape.adjoint(sum_op, prod_op, log_prob) + approx_factors = funsor.adjoint.adjoint(sum_op, prod_op, log_prob)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug Description
This is a part of the issues reported in #1981. Running the following test will raise an error/xfail.
Steps to Reproduce
Expected Behavior
The test should pass.
The text was updated successfully, but these errors were encountered: