I have hopefully an easy question for the forum: I have a
PyroModule model that includes some parameters that use
PyroSample in the initialization to specify their priors and others that are defined using
pyro.sample() in the
forward method. Its easy to get posterior estimates from the latter, but its not clear to me how I get parameters that are specified by
PyroSample. Do I need to use
poutine to trace them manually?
I have tried accessing the parameter directly as an attribute of the model, but that seems to just sample from the prior (rather than from the posterior of the fitted model).