Skip to content

Commit a335964

Browse files
committed
mock torch
1 parent 69a97c8 commit a335964

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/requirements.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
-f https://download.pytorch.org/whl/torch_stable.html
2-
numpy
3-
torch_nightly
41
sphinx
52
sphinx_rtd_theme
63
sphinx-autodoc-typehints

docs/source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
'sphinx_autodoc_typehints',
1515
]
1616

17+
autodoc_mock_imports = [
18+
'torch',
19+
]
20+
1721
source_suffix = '.rst'
1822
master_doc = 'index'
1923

0 commit comments

Comments
 (0)