Skip to content

Commit

Permalink
Add docs on implementing PyTorch Ops (and CumOp) (#837)
Browse files Browse the repository at this point in the history
* Add Pytorch support for Cum Op

* Modify test for Cum op

* Raise TypeError if axis not int or None

* Fix init method of CumOp

* Extend tutorial on documentation for Pytorch

* Add tab for Numba

* Add intersphinx mapping

* Parametrize dtype
  • Loading branch information
HarshvirSandhu authored Jul 4, 2024
1 parent e57e25b commit 781073b
Show file tree
Hide file tree
Showing 7 changed files with 550 additions and 104 deletions.
8 changes: 8 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,16 @@
"sphinx.ext.napoleon",
"sphinx.ext.linkcode",
"sphinx.ext.mathjax",
"sphinx_design",
"sphinx.ext.intersphinx"
]

intersphinx_mapping = {
"jax": ("https://jax.readthedocs.io/en/latest", None),
"numpy": ("https://numpy.org/doc/stable", None),
"torch": ("https://pytorch.org/docs/stable", None),
}

needs_sphinx = "3"

todo_include_todos = True
Expand Down
1 change: 1 addition & 0 deletions doc/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies:
- mock
- pillow
- pymc-sphinx-theme
- sphinx-design
- pip
- pip:
- -e ..
Loading

0 comments on commit 781073b

Please sign in to comment.