Skip to content

Commit

Permalink
Localize doctest cupy dependency from global to gpu.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
niboshi committed Jan 15, 2019
1 parent e8bc196 commit 34f5647
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@
doctest_global_setup = '''
import os
import numpy as np
import cupy
import chainer
from chainer.backends import cuda
from chainer import Function, gradient_check, training, utils, Variable
Expand Down
4 changes: 4 additions & 0 deletions docs/source/guides/gpu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ After reading this section, you will be able to:
* Write model-parallel computing in Chainer
* Write data-parallel computing in Chainer

.. testsetup::

import cupy

.. testcode::
:hide:

Expand Down

0 comments on commit 34f5647

Please sign in to comment.