Skip to content

Commit

Permalink
reqst
Browse files Browse the repository at this point in the history
  • Loading branch information
dingguanglei committed Oct 26, 2018
1 parent daffaa1 commit 2d786a1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#

import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../../'))
# sys.path.insert(0, os.path.abspath('../../'))
# import jdit
import mock
MOCK_MODULES = ['numpy', 'scipy',
'pandas',
Expand All @@ -37,11 +35,12 @@
'torchvision.datasets.MNIST','torchvision.datasets.FashionMNIST',
'torchvision.datasets.CIFAR10','torchvision.datasets.LSUN',
]


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

sys.path.append(os.path.join(os.path.dirname(__file__), '../../'))
# sys.path.insert(0, os.path.abspath('../../'))
import jdit


# -- Project information -----------------------------------------------------
Expand Down

0 comments on commit 2d786a1

Please sign in to comment.