We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 762f34c + 1f04c1d commit 5364539Copy full SHA for 5364539
PolicyGradient/a3c/train.py
@@ -125,7 +125,7 @@ def make_env(wrap=True):
125
# Start worker threads
126
worker_threads = []
127
for worker in workers:
128
- worker_fn = lambda: worker.run(sess, coord, FLAGS.t_max)
+ worker_fn = lambda worker=worker: worker.run(sess, coord, FLAGS.t_max)
129
t = threading.Thread(target=worker_fn)
130
t.start()
131
worker_threads.append(t)
0 commit comments