Skip to content

Commit ab6e2a6

Browse files
Add files via upload
1 parent 3c50615 commit ab6e2a6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

11_Pong-v0_PPO/Pong-v0_PPO.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ def train(self, n_threads):
283283
time.sleep(2)
284284
t.start()
285285

286+
for t in threads:
287+
time.sleep(10)
288+
t.join()
289+
286290
def train_threading(self, agent, env, thread):
287291
global graph
288292
with graph.as_default():

11_Pong-v0_PPO/Pong-v0_PPO_gif.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ def train(self, n_threads):
285285
time.sleep(2)
286286
t.start()
287287

288+
for t in threads:
289+
time.sleep(10)
290+
t.join()
291+
288292
def train_threading(self, agent, env, thread):
289293
global graph
290294
with graph.as_default():

0 commit comments

Comments
 (0)