Skip to content

Commit

Permalink
Reorganize ops (#363)
Browse files Browse the repository at this point in the history
* Split ops into ops.op and ops.builtin

* Split ops.array out of ops.builtin

* Replace Dispatcher with Op

* Clean up docs
  • Loading branch information
fritzo authored Sep 14, 2020
1 parent 41735ec commit 0d3553b
Show file tree
Hide file tree
Showing 9 changed files with 676 additions and 631 deletions.
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@
'numpy': ('http://docs.scipy.org/doc/numpy/', None),
'torch': ('http://pytorch.org/docs/master/', None),
'pyro': ('http://docs.pyro.ai/en/stable/', None),
'opt_einsum': ('https://optimized-einsum.readthedocs.io/en/stable/', None)
'opt_einsum': ('https://optimized-einsum.readthedocs.io/en/stable/', None),
'multipledispatch': ('https://multiple-dispatch.readthedocs.io/en/latest/', None),
}

# @jpchen's hack to get rtd builder to install latest pytorch
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Funsor is a tensor-like library for functions and distributions
:maxdepth: 2
:caption: Funsor Core:

domains
ops
domains
interpretations
funsors
optimizer
Expand Down
23 changes: 21 additions & 2 deletions docs/source/ops.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
Operations
----------
.. automodule:: funsor.ops
==========

Operation classes
-----------------
.. automodule:: funsor.ops.op
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource

Builtin operations
------------------
.. automodule:: funsor.ops.builtin
:members:
:undoc-members:
:show-inheritance:
:member-order: bysource

Array operations
----------------
.. automodule:: funsor.ops.array
:members:
:undoc-members:
:show-inheritance:
Expand Down
Loading

0 comments on commit 0d3553b

Please sign in to comment.