Fix memory leak in tensorflow backend
@@ -67,6 +67,7 @@ def clear_session():
reset_uids()
_SESSION = None
phase = tf.placeholder(dtype='bool', name='keras_learning_phase')
+ _GRAPH_LEARNING_PHASES = {}
_GRAPH_LEARNING_PHASES[tf.get_default_graph()] = phase
