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

Method _setup_graph

tensorpack/train/tower.py:223–230  ·  view source on GitHub ↗

Implement the logic to build the graph, with an :class:`InputSource` that's been setup already. Returns: [Callback]: list of callbacks needed

(self, input, get_cost_fn, get_opt_fn)

Source from the content-addressed store, hash-verified

221
222 @abstractmethod
223 def _setup_graph(self, input, get_cost_fn, get_opt_fn):
224 """
225 Implement the logic to build the graph, with an :class:`InputSource`
226 that's been setup already.
227
228 Returns:
229 [Callback]: list of callbacks needed
230 """
231
232 def _setup_input(self, input_signature, input):
233 assert not input.setup_done()

Callers 1

setup_graphMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected