works now
This commit is contained in:
parent
09973b6cde
commit
5845edf084
|
@ -93,8 +93,9 @@ class Network:
|
||||||
self.saver.save(self.session, self.checkpoint_path + 'model.ckpt')
|
self.saver.save(self.session, self.checkpoint_path + 'model.ckpt')
|
||||||
|
|
||||||
def restore_model(self):
|
def restore_model(self):
|
||||||
latest_checkpoint = tf.train.latest_checkpoint(self.checkpoint_path)
|
if os.path.isfile(self.checkpoint_path):
|
||||||
self.saver.restore(self.session, latest_checkpoint)
|
latest_checkpoint = tf.train.latest_checkpoint(self.checkpoint_path)
|
||||||
|
self.saver.restore(self.session, latest_checkpoint)
|
||||||
|
|
||||||
# Have a circular dependency, #fuck, need to rewrite something
|
# Have a circular dependency, #fuck, need to rewrite something
|
||||||
def train(self, x, v_next):
|
def train(self, x, v_next):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user