(self)
| 62 | return self._func(*args, **kwargs) |
| 63 | |
| 64 | def run(self): |
| 65 | with self.default_sess(): |
| 66 | player = get_player_fn(train=False) |
| 67 | while not self.stopped(): |
| 68 | try: |
| 69 | score = play_one_episode(player, self.func) |
| 70 | except RuntimeError: |
| 71 | return |
| 72 | self.queue_put_stoppable(self.q, score) |
| 73 | |
| 74 | q = queue.Queue() |
| 75 | threads = [Worker(f, q) for f in predictors] |
no test coverage detected