LouisEchard / ML_MiniProjects

Personal db
0 stars 0 forks source link

error raised when loading old session #35

Open LouisEchard opened 6 years ago

LouisEchard commented 6 years ago
     64                 new_saver = tf.train.import_meta_graph(self.pathToOldVariables + 'Model/model.meta')
     65                 new_saver.restore(sess, self.pathToOldVariables + 'Model/model')

NotFoundError: Key b1-tc not found in checkpoint

b1-tc is not in this checkpoint(b1-tu is), I've never asked for this variable. So why is it raising this error. I just want to restore the old session.

LouisEchard commented 6 years ago

I think that's the impact of former tensorflow sessions and graphs from previous model. HACK: tf.resetgraph

TODO: create separate sessions inside each object.