Skip to content

Commit

Permalink
Merge pull request #839 from azavea/lf/fixdocs-backport
Browse files Browse the repository at this point in the history
Mock torch-related dependencies in docs
  • Loading branch information
lewfish committed Oct 2, 2019
2 parents f08f931 + 8f2b10e commit a8a15f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def __getattr__(cls, name):
MOCK_MODULES = ['pyproj', 'h5py']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

autodoc_mock_imports = ['torch', 'torchvision', 'pycocotools']

intersphinx_mapping = {'python': ('https://docs.python.org/3/', None)}

# Add any paths that contain templates here, relative to this directory.
Expand Down

0 comments on commit a8a15f2

Please sign in to comment.