Skip to content

Commit 781073b

Browse files
Add docs on implementing PyTorch Ops (and CumOp) (#837)
* 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
1 parent e57e25b commit 781073b

File tree

7 files changed

+550
-104
lines changed

7 files changed

+550
-104
lines changed

doc/conf.py

+8
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,16 @@
3232
"sphinx.ext.napoleon",
3333
"sphinx.ext.linkcode",
3434
"sphinx.ext.mathjax",
35+
"sphinx_design",
36+
"sphinx.ext.intersphinx"
3537
]
3638

39+
intersphinx_mapping = {
40+
"jax": ("https://jax.readthedocs.io/en/latest", None),
41+
"numpy": ("https://numpy.org/doc/stable", None),
42+
"torch": ("https://pytorch.org/docs/stable", None),
43+
}
44+
3745
needs_sphinx = "3"
3846

3947
todo_include_todos = True

doc/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dependencies:
1313
- mock
1414
- pillow
1515
- pymc-sphinx-theme
16+
- sphinx-design
1617
- pip
1718
- pip:
1819
- -e ..

0 commit comments

Comments
 (0)