Skip to content

Commit 2674ffd

Browse files
authored
Remove T+=1 from for loop (used to be while loop)
Spotted by @ankeshanand
1 parent 9194e40 commit 2674ffd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

main.py

-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ def log(s):
106106
if args.reward_clip > 0:
107107
reward = max(min(reward, args.reward_clip), -args.reward_clip) # Clip rewards
108108
mem.append(state, action, reward, done) # Append transition to memory
109-
T += 1
110109

111110
# Train and test
112111
if T >= args.learn_start:

0 commit comments

Comments
 (0)