Make pyro.nn.PyroSample(prior) statements sample deterministic values when the prior is a function that returns a torch.Tensor value, as described in the below example:
In the above code the dependent deterministic samples can be converted to dependent samples by assigning them pyro.nn.PyroSample(prior) statements with the prior being a function returning a proper distribution, allowing simple exploration of various model complexity levels for the same problem.
Make
pyro.nn.PyroSample(prior)
statements sample deterministic values when theprior
is a function that returns atorch.Tensor
value, as described in the below example:In the above code the dependent deterministic samples can be converted to dependent samples by assigning them
pyro.nn.PyroSample(prior)
statements with theprior
being a function returning a proper distribution, allowing simple exploration of various model complexity levels for the same problem.The updated docs can be reviewed here.