Skip to content

Commit

Permalink
Make pyro.subsample appear in docs (#2353)
Browse files Browse the repository at this point in the history
  • Loading branch information
eb8680 authored Mar 8, 2020
1 parent f27b790 commit e035dd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
20 changes: 3 additions & 17 deletions docs/source/primitives.rst
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
Primitives
==========

.. autofunction:: pyro.sample
.. autofunction:: pyro.param
.. autofunction:: pyro.module
.. autofunction:: pyro.random_module
.. autofunction:: pyro.factor
.. autofunction:: pyro.deterministic

.. autoclass:: pyro.plate
.. automodule:: pyro.primitives
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource

.. autofunction:: pyro.plate_stack

.. autofunction:: pyro.get_param_store
.. autofunction:: pyro.clear_param_store

.. autofunction:: pyro.validation_enabled
.. autofunction:: pyro.enable_validation

.. autofunction:: pyro.ops.jit.trace

.. autofunction:: pyro.set_rng_seed
1 change: 1 addition & 0 deletions pyro/poutine/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ def effectful(fn=None, type=None):
assert type is not None, "must provide a type label for operation {}".format(fn)
assert type != "message", "cannot use 'message' as keyword"

@functools.wraps(fn)
def _fn(*args, **kwargs):

name = kwargs.pop("name", None)
Expand Down

0 comments on commit e035dd3

Please sign in to comment.