Hi everybody,
I’m reading Pyro source code. In enum.get_importance_trace()
, we have:
guide_trace = prune_subsample_sites(guide_trace)
model_trace = prune_subsample_sites(model_trace)
Why do we need to remove sites that were subsampled in iarange context from the importance trace of model and guide?
Thank you in advance!