Skip to content

Commit 58d266c

Browse files
committed
* fixes
1 parent e8de91c commit 58d266c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/single_processes/dqn_actor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ def dqn_actor(process_ind, args,
111111
if args.memory_params.enable_per: # then use tderr as the initial priority
112112
priority = abs(rewards_between + gamma_sn * max_qvalues_nstep[-1] - qvalues_nstep[0]) # TODO: currently still one step off
113113
# print(priority)
114-
global_memory.feed((states_nstep[-1],
115-
actions_nstep[-1],
114+
global_memory.feed((states_nstep[0],
115+
actions_nstep[0],
116116
[rewards_between],
117117
[gamma_sn],
118-
states_nstep[0],
119-
terminal1s_nstep[-1]),
118+
states_nstep[-1],
119+
terminal1s_nstep[0]),
120120
priority)
121121

122122
# check conditions & update flags

0 commit comments

Comments
 (0)