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.
1 parent 762f34c commit 1f04c1dCopy full SHA for 1f04c1d
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