After using the pyro.poutine.equalize effect handler model rendering with pyro.render_model does not work due to no base_dist attribute in Delta sampled sites.
Solution
Add masking so that the sampling function has the base_dist attribute as expected by pyro.render_model for Delta sampled sites.
Problem
After using the
pyro.poutine.equalize
effect handler model rendering withpyro.render_model
does not work due to nobase_dist
attribute inDelta
sampled sites.Solution
Add masking so that the sampling function has the
base_dist
attribute as expected bypyro.render_model
forDelta
sampled sites.