Merge pull request #7 from jendelel/init_eval_state_bug

Fixed bug with double tensoring the initial state.
This commit is contained in:
Pranjal Tandon
2019-03-25 23:33:36 +05:30
committed by GitHub
+1 -1
View File
@@ -109,7 +109,7 @@ for i_episode in itertools.count():
np.round(np.mean(rewards[-100:]),2)))
if i_episode % 10 == 0 and args.eval == True:
state = torch.Tensor([env.reset()])
state = env.reset()
episode_reward = 0
while True:
action = agent.select_action(state, eval=True)