pyro-ppl/pyro

List: move these things upstream to PyTorch, Funsor, etc.

Open

#2,630 opened on Sep 16, 2020

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Python (981 forks)batch import
help wantedrefactor

Repository metrics

Stars
 (8,211 stars)
PR merge metrics
 (Avg merge 10d 19h) (1 merged PR in 30d)

Description

This issue tracks Pyro components that should be moved to upstream dependencies.

Move to PyTorch

  • constraints.IndependentConstraint
    • usage in MultivariateNormal
    • usage in dist.Independent
  • dist.Delta #1781
  • constraints.integer
  • Geometric.log_prob() as patched in pyro/distributions/torch.py
  • Uniform's ._unbroadcasted_* logic
  • _with_cache() in pyro/infer/reparam/unit_jacobian.py
  • dist.DirichletMultinomial https://github.com/pytorch/pytorch/issues/56030

Move to Funsor

See also https://github.com/pyro-ppl/funsor/issues/362

  • distributions.util.detach()
  • ops.tensor_utils.haar_transform() and .inverse_haar_transform()

Contributor guide