Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.29 KB

poutine.rst

File metadata and controls

50 lines (37 loc) · 1.29 KB

Poutine (Effect handlers)

Beneath the built-in inference algorithms, Pyro has a library of composable effect handlers for creating new inference algorithms and working with probabilistic programs. Pyro's inference algorithms are all built by applying these handlers to stochastic functions. In order to get a general understanding what effect handlers are and what problem they solve, read An Introduction to Algebraic Effects and Handlers by Matija Pretnar.

Handlers

pyro.poutine.handlers

pyro.infer.enum.config_enumerate

Trace

pyro.poutine.Trace

Runtime

pyro.poutine.runtime

Utilities

pyro.poutine.util

Messengers

Messenger objects contain the implementations of the effects exposed by handlers. Advanced users may modify the implementations of messengers behind existing handlers or write new messengers that implement new effects and compose correctly with the rest of the library.