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

Method _setup_graph

tensorpack/train/trainers.py:71–73  ·  view source on GitHub ↗
(self, input, get_cost_fn, get_opt_fn)

Source from the content-addressed store, hash-verified

69class QueueInputTrainer(SimpleTrainer):
70 @deprecated("SimpleTrainer is sufficient!", "2019-12-31")
71 def _setup_graph(self, input, get_cost_fn, get_opt_fn):
72 assert isinstance(input, QueueInput), input
73 return super(QueueInputTrainer, self)._setup_graph(input, get_cost_fn, get_opt_fn)
74
75
76class SyncMultiGPUTrainerParameterServer(SingleCostTrainer):

Callers

nothing calls this directly

Calls 1

_setup_graphMethod · 0.45

Tested by

no test coverage detected