Commit 87bc52c5 authored by Yukun Zhu's avatar Yukun Zhu Committed by aquariusjay
Browse files

Fix init_fn in train_utils. (#7790)

parent d48d036a
......@@ -221,7 +221,7 @@ def get_model_init_fn(train_logdir,
ignore_missing_vars=ignore_missing_vars)
global_step = tf.train.get_or_create_global_step()
def restore_fn(unused_scaffold, sess):
def restore_fn(sess):
sess.run(init_op, init_feed_dict)
sess.run([global_step])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment