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

Method init

tensorpack/tfutils/sessinit.py:20–28  ·  view source on GitHub ↗

Initialize a session Args: sess (tf.Session): the session

(self, sess)

Source from the content-addressed store, hash-verified

18class SessionInit(object):
19 """ Base class for utilities to load variables to a (existing) session. """
20 def init(self, sess):
21 """
22 Initialize a session
23
24 Args:
25 sess (tf.Session): the session
26 """
27 self._setup_graph()
28 self._run_init(sess)
29
30 def _setup_graph(self):
31 pass

Callers 4

__init__Method · 0.80
__init__Method · 0.80
checkpoint-prof.pyFile · 0.80
train.pyFile · 0.80

Calls 2

_setup_graphMethod · 0.95
_run_initMethod · 0.95

Tested by

no test coverage detected