Skip to content

Commit

Permalink
More mock imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jachiam committed Jan 30, 2020
1 parent 023fd73 commit 4880fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return MagicMock()

MOCK_MODULES = ['mpi4py', 'torch']
MOCK_MODULES = ['mpi4py', 'torch', 'torch.optim', 'torch.nn']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

# Finish imports
Expand Down

0 comments on commit 4880fc6

Please sign in to comment.