Beispiel #1
0
 def reopen_current_session(self):
     self.current_session = TFT.copy_session(
         self.current_session
     )  # Open a new session with same tensorboard stuff
     self.current_session.run(tf.global_variables_initializer())
     self.restore_session_params(
     )  # Reload old weights and biases to continued from where we last left off
Beispiel #2
0
	def reopenCurrentSession(self):
		self.currentSession = tft.copy_session(self.currentSession) # Open a new session with the same tensors
		self.currentSession.run(tf.global_variables_initializer())
		self.restore_session_params() 	# Reload weights and biases