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

Method setup_graph

tensorpack/callbacks/base.py:53–59  ·  view source on GitHub ↗
(self, trainer)

Source from the content-addressed store, hash-verified

51 """
52
53 def setup_graph(self, trainer):
54 self.trainer = trainer
55 self.graph = tf.get_default_graph()
56 scope_name = self.name_scope or type(self).__name__
57 scope_name = scope_name.replace('_', '')
58 with tf.name_scope(scope_name):
59 self._setup_graph()
60
61 def _setup_graph(self):
62 """

Callers 6

setup_keras_trainerFunction · 0.45
_setup_graphMethod · 0.45
_setup_graphMethod · 0.45
_setup_graphMethod · 0.45
_setup_graphMethod · 0.45
__init__Method · 0.45

Calls 1

_setup_graphMethod · 0.95

Tested by

no test coverage detected