\ :py:mod:`clipppy.utils.pyro` ============================== .. py:module:: clipppy.utils.pyro Module Contents --------------- .. py:data:: init_msgr .. py:data:: no_grad_msgr .. py:class:: NoGradMessenger Context manager class that modifies behavior and adds side effects to stochastic functions i.e. callables containing Pyro primitive statements. This is the base Messenger class. It implements the default behavior for all Pyro primitives, so that the joint distribution induced by a stochastic function fn is identical to the joint distribution induced by ``Messenger()(fn)``. Class of transformers for messages passed during inference. Most inference operations are implemented in subclasses of this. .. py:method:: _pyro_post_param(msg: clipppy.utils.typing._Site) :staticmethod: .. py:function:: depoutine(obj: Union[pyro.poutine.messenger._bound_partial, Any], msgr_type: Type[pyro.poutine.messenger.Messenger] = ConditionMessenger) .. py:function:: init_fn(site: clipppy.utils.typing._Site) -> torch.Tensor