Theano: Initialisation of device gpu failed! Reason=CNMEM_STATUS_OUT_OF_MEMORY

纵饮孤独 提交于 2019-12-04 03:01:51

This is question is solved based on this.

As indicated here, the cnmem is actually only allowed to be assigned as a float.

0: not enabled.

0 < N <= 1: use this fraction of the total GPU memory (clipped to .95 for driver memory).

> 1: use this number in megabytes (MB) of memory.

So it will be working if cnmem=1.0 instead of cnmem=1.

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