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

Method _register_hook

tensorpack/predict/feedfree.py:50–55  ·  view source on GitHub ↗

Args: hook (tf.train.SessionRunHook):

(self, hook)

Source from the content-addressed store, hash-verified

48 self._initialize_session()
49
50 def _register_hook(self, hook):
51 """
52 Args:
53 hook (tf.train.SessionRunHook):
54 """
55 self._hooks.append(hook)
56
57 def _initialize_session(self):
58 # init the session

Callers 1

__init__Method · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected