Regarding the deadlock, it seems I found a way around accidentally. You have to include a line which in fact say you want to use the GPU especially if like me you do it cell by cell . Exemple below:
with tf.device('/gpu:0'):
<write your model here>
then here you do other things in your notebook like batch and such... Then you train your model
with tf.device('/gpu:0'):
hist_1 = model_1.fit
Somehow, this stopped my deadlock. In addition (and I don't know if it is related but just in case), I stopped to use Safari for my Jupyter Notebook and went on chrome instead (not for this reason but mainly because safari kept reloading my "heavy" notebook...)
Hope this help
cheers
Topic:
Machine Learning & AI
SubTopic:
General
Tags: