Keras uses GPU for first 2 epochs, then stops using it

前端 未结 2 1688
渐次进展
渐次进展 2021-01-26 12:42

I prepare the dataset and save it as as hdf5 file. I have a custom data generator that subclasses Sequence from keras and generates batches from the hdf5 file.

Now, when

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-26 13:17

    Same Error Here!!

    Because when you install tensorflow-gpu along nivida tool kit it provide a limited amount of GPU memory (Here in my case 2GB) .Due to leak of memory it release GPU finally and turn to use CPU .

    if you want to avoid such condition Use Google Colab which provide about 36.7GB GPU memory.

提交回复
热议问题