This commit is contained in:
Christoffer Müller Madsen 2018-03-27 23:13:59 +00:00
parent 95b12a6c35
commit abce56dd40

View File

@ -295,7 +295,7 @@ class Network:
return [0]
if tf_session == None:
with tf.Session():
with tf.Session() as session:
session.run(tf.global_variables_initializer())
self.restore_model(session)
outcomes = [ (method, do_eval(session,