Skip to content

Commit

Permalink
Use getter
Browse files Browse the repository at this point in the history
  • Loading branch information
okuta committed Oct 28, 2017
1 parent cd23288 commit bb0b47d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chainer/cuda.py
Expand Up @@ -127,8 +127,9 @@ def __ne__(self, other):
# Global states
# ------------------------------------------------------------------------------
if available:
memory_pool = cupy.default_memory_pool
pinned_memory_pool = cupy.default_pinned_memory_pool
# This is for backward compatibility
memory_pool = cupy.get_default_memory_pool()
pinned_memory_pool = cupy.get_default_pinned_memory_pool()


if six.PY2:
Expand Down

0 comments on commit bb0b47d

Please sign in to comment.