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

Class ReuseSessionCreator

tensorpack/tfutils/sesscreate.py:94–106  ·  view source on GitHub ↗

Returns an existing session.

Source from the content-addressed store, hash-verified

92
93
94class ReuseSessionCreator(tf.train.SessionCreator):
95 """
96 Returns an existing session.
97 """
98 def __init__(self, sess):
99 """
100 Args:
101 sess (tf.Session): the session to reuse
102 """
103 self.sess = sess
104
105 def create_session(self):
106 return self.sess
107
108
109class SessionCreatorAdapter(tf.train.SessionCreator):

Callers 1

initialize_hooksMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected