-2

I am using kears with tensorflow backend, and following is the problem. Is there any can solve this problem, thanks!

enter image description here

xixixixi
  • 253
  • 1
  • 4
  • 8
  • Paste the messages in text instead of image. – YLJ Jun 04 '17 at 17:19
  • Possible duplicate of [Theano: Initialisation of device gpu failed! Reason=CNMEM\_STATUS\_OUT\_OF\_MEMORY](https://stackoverflow.com/questions/36099918/theano-initialisation-of-device-gpu-failed-reason-cnmem-status-out-of-memory) – YLJ Jun 04 '17 at 17:32

1 Answers1

1

The error is caused by a illegal value of CNMEM. According to theano doc, CNMEM can only 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.

You can also refer to here.

The warning is due to a change in Theano (Kera's backend). It will change from CUDA to GpuArray. You can refer to here for a solution.

Actually if you fix the warning, the error will disappear as well according to:

This value allocates GPU memory ONLY when using (CUDA backend) and has no effect when the GPU backend is (GpuArray Backend). For the new backend, please see config.gpuarray.preallocate

Community
  • 1
  • 1
YLJ
  • 2,940
  • 2
  • 18
  • 29