ReinforcementZeroToAll
ReinforcementZeroToAll copied to clipboard
08_4_softmax_pg_pong_y.py ---> model restore BUG
agent = Agent(new_HW + [repeat], output_dim=action_dim, logdir='logdir/train',
checkpoint_dir="checkpoints")
init = tf.global_variables_initializer()
sess.run(init)
Agent를 선언하면서, model을 restore하고 있습니다. 그런데, 그 아래에서 initialization이 이루어지고 있습니다. 순서가 바뀌어야 합니다.
init = tf.global_variables_initializer()
sess.run(init)
agent = Agent(new_HW + [repeat], output_dim=action_dim, logdir='logdir/train',
checkpoint_dir="checkpoints")