-
Notifications
You must be signed in to change notification settings - Fork 265
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
A part of #1981
During MCMC run, we cache some functions so that later run might be faster. However, this might cause some leaks.
Steps to Reproduce
JAX_CHECK_TRACER_LEAKS=1 pytest -vs test/infer/test_mcmc.py::test_chain_inside_jit
JAX_CHECK_TRACER_LEAKS=1 pytest -vs test/infer/test_mcmc.py::test_chain_jit_args_smoke
JAX_CHECK_TRACER_LEAKS=1 pytest -vs test/infer/test_mcmc.py::test_reuse_mcmc_run
JAX_CHECK_TRACER_LEAKS=1 pytest -vs test/infer/test_mcmc.py::test_model_with_multiple_exec_paths
Expected Behavior
No tracer leaks. A solution is to cache outside of jit context.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working