Proper Keras model initialization in multithreaded environment.
See
@@ -151,6 +151,7 @@ def get_session():
_SESSION = tf.Session(config=config)
session = _SESSION
if not _MANUAL_VAR_INIT:
+ with session.graph.as_default():
_initialize_variables()
return session
