Skip to content

Commit 4be74be

Browse files
author
Morvan Zhou
committed
update
1 parent 13c0d3f commit 4be74be

File tree

1 file changed

+1
-1
lines changed
  • contents/12_Proximal_Policy_Optimization

1 file changed

+1
-1
lines changed

contents/12_Proximal_Policy_Optimization/DPPO.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def work(self):
125125
s = s_
126126
ep_r += r
127127

128-
GLOBAL_UPDATE_COUNTER += 1 # count to minimum batch size
128+
GLOBAL_UPDATE_COUNTER += 1 # count to minimum batch size, no need to wait other workers
129129
if t == EP_LEN - 1 or GLOBAL_UPDATE_COUNTER >= MIN_BATCH_SIZE:
130130
v_s_ = self.ppo.get_v(s_)
131131
discounted_r = [] # compute discounted reward

0 commit comments

Comments
 (0)