2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

chainerで少しつまったところ

Last updated at Posted at 2015-07-10

#エラー内容

$ python
>>> from chainer import cuda
>>> cuda.init(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "(pythonのディレクトリ)/site-packages/chainer/cuda.py", line 125, in init
    cumisc.init(mem_alloc)
TypeError: init() takes no arguments (1 given)

#原因
scikits.cudaパッケージのバージョンが適切でなかったっぽい(0.42でやってたら失敗しました)

#解決方法

$ pip uninstall scikits.cuda
$ pip install scikits.cuda==0.5.0b3

Makoってパッケージが入ってなかったらそれも入れる

$ pip install Mako
2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?