Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mali-git committed Nov 13, 2018
1 parent 2d86dc6 commit 58fe879
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,8 @@
import re
import sys



# -- Mockup PyTorch to exclude it while compiling the docs--------------------------------------------------------------
from unittest.mock import MagicMock

class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
return MagicMock()

MOCK_MODULES = ['torch', 'pykeen', 'gobject', 'argparse', 'numpy', 'pandas']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
autodoc_mock_imports = ['torch', 'numpy', 'scipy', 'torchvision', 'scikit-learn',]

sys.path.insert(0, os.path.abspath('../../src'))

Expand Down

0 comments on commit 58fe879

Please sign in to comment.