Skip to content

Commit

Permalink
more mock modules for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjankowiak committed Nov 10, 2021
1 parent 2f56fc7 commit dcf5498
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@
# 'exclude-members': '__dict__,__module__,__weakref__',
# }

MOCK_MODULES = ['numpy', 'pandas', 'torch', 'scipy', 'polyagamma']
MOCK_MODULES = ['numpy', 'pandas', 'torch', 'polyagamma', 'torch.distributions',
'torch.linalg', 'torch.nn.functional']

for mod_name in MOCK_MODULES:
sys.modules[mod_name] = mock.Mock()

Expand Down

0 comments on commit dcf5498

Please sign in to comment.