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

Method _setup_graph

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

Source from the content-addressed store, hash-verified

122 self.get_player_fn = get_player_fn
123
124 def _setup_graph(self):
125 NR_PROC = min(multiprocessing.cpu_count() // 2, 20)
126 self.pred_funcs = [self.trainer.get_predictor(
127 self.input_names, self.output_names)] * NR_PROC
128
129 def _trigger(self):
130 t = time.time()

Callers

nothing calls this directly

Calls 1

get_predictorMethod · 0.45

Tested by

no test coverage detected