Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
- update conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nasimrahaman committed Sep 1, 2017
1 parent 84dd528 commit da24ac0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return MagicMock()

MOCK_MODULES = ['pygtk', 'hdf5', 'skimage', 'argparse', 'pandas', 'torch', 'torch.nn',
'torch.multiprocessing', 'torch.autograd', 'torch.optim', 'torch.sparse',
'torch.cuda']
MOCK_MODULES = ['pygtk',
'hdf5',
'skimage',
'argparse',
'pandas',
'torch',
'torch.nn', 'torch.nn.init',
'torch.multiprocessing', 'torch.autograd',
'torch.optim', 'torch.sparse', 'torch.cuda']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)


Expand Down

0 comments on commit da24ac0

Please sign in to comment.