import tensorflow as tf




    def restore_param(self):
        Saver = tf.train.Saver()
        self.sess.run(tf.global_variables_initializer())
        checkpoint = tf.train.get_checkpoint_state("saved_networks")
        if checkpoint and checkpoint.model_checkpoint_path:
            Saver.restore(self.sess,checkpoint.model_checkpoint_path)
            print("Successfully loaded",checkpoint.model_checkpoint_path)
        else:
            print("Could not find old network weights")
