mihahauke / deep_rl_vizdoom

Deep reinforcement learning in ViZDoom (using Tensorflow)
19 stars 8 forks source link

in run_training, which funtion runs first in thread? #11

Closed ouyangzhuzhu closed 6 years ago

ouyangzhuzhu commented 6 years ago

HI , here below the code is like this in async_learner.py, and which function runs first? The start() does not assign a function.... def run_training(self, session): self._session = session self.start()

and the run_training is called in _async_algo.py below for l in learners: l.run_training(session) for l in learners: l.join()

mihahauke commented 6 years ago

Learners extend Thread class so 'run' function is executed when the thread is started.

ouyangzhuzhu commented 6 years ago

3ks !