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

Commit

Permalink
- added torch submodules to be mocked
Browse files Browse the repository at this point in the history
  • Loading branch information
nasimrahaman committed Sep 1, 2017
1 parent 810a4c6 commit 84dd528
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return MagicMock()

MOCK_MODULES = ['pygtk', 'hdf5', 'skimage', 'argparse', 'pandas','torch','torch.nn']
MOCK_MODULES = ['pygtk', 'hdf5', 'skimage', 'argparse', 'pandas', 'torch', 'torch.nn',
'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 84dd528

Please sign in to comment.