MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / run

Method run

examples/DeepQNetwork/common.py:64–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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]

Callers 1

imagenet_utils.pyFile · 0.45

Calls 4

default_sessMethod · 0.80
stoppedMethod · 0.80
queue_put_stoppableMethod · 0.80
play_one_episodeFunction · 0.70

Tested by

no test coverage detected