Open fritzo opened 4 years ago
@fritzo out of curiosity is there a tutorial on the process for migrating code, updating docs and writing tests?
@RylanSchaeffer there is no tutorial on migrating distributions. To migrate a distribution from Pyro to PyTorch you'd need to
EXAMPLES
list in test/distributions/test_distributions.pySee for example https://github.com/pytorch/pytorch/pull/48798/files
This issue tracks Pyro components that should be moved to upstream dependencies.
Move to PyTorch
constraints.IndependentConstraint
MultivariateNormal
dist.Independent
dist.Delta
#1781constraints.integer
Geometric.log_prob()
as patched in pyro/distributions/torch.pyUniform
's._unbroadcasted_*
logic_with_cache()
in pyro/infer/reparam/unit_jacobian.pydist.DirichletMultinomial
https://github.com/pytorch/pytorch/issues/56030Move to Funsor
See also https://github.com/pyro-ppl/funsor/issues/362
distributions.util.detach()
ops.tensor_utils.haar_transform()
and.inverse_haar_transform()