Is it possible to install cupy on google colab?

社会主义新天地 提交于 2019-12-01 06:39:48

Edit: Google Colaboratory now provides Chainer, CuPy and iDeep by default. Manual installation is no longer necessary.


Original Answer:

You can use a wheel to avoid building CuPy by yourself on Google Colab. Chainer officially provides snippet to install Chainer/CuPy on Google Colab.

!curl https://colab.chainer.org/install | sh -

We do not need to install cupy manually in Google colab. In Notebook Settings under Edit we can choose GPU. If you have chainer already installed you can confirm availability of cupy through this:

chainer.print_runtime_info()
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!