Skip to content
Snippets Groups Projects
Commit a2da7c28 authored by Erik Nygren's avatar Erik Nygren
Browse files

fixed reward bug

parent ed1f9cc4
No related branches found
No related tags found
No related merge requests found
......@@ -163,7 +163,7 @@ def main(argv):
if not done[a]:
if agent_obs_buffer[a] is not None and register_action_state[a]:
agent_delayed_next = agent_obs[a].copy()
agent.step(agent_obs_buffer[a], agent_action_buffer[a], cummulated_reward[a],
agent.step(agent_obs_buffer[a], agent_action_buffer[a], all_rewards[a],
agent_delayed_next, done[a])
cummulated_reward[a] = 0.
if register_action_state[a]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment