def _restore_meta(self):
        """ Restore from meta file. 'RESTORE_META_FILE' is expected to have .meta at the end. """
        restore_meta_file = self._get_restore_meta_file()
        filename = self.flags['RESTORE_DIRECTORY'] + self._get_restore_meta_file()
        new_saver = tf.train.import_meta_graph(filename)
        new_saver.restore(self.sess, filename[:-5])
        print("Model restored from %s" % restore_meta_file)
def _restore_meta ( self ) : restore_meta_file = self . _get_restore_meta_file ( ) filename = self . flags [ 'RESTORE_DIRECTORY' ] + self . _get_restore_meta_file ( ) new_saver = tf . train . import_meta_graph ( filename ) new_saver . restore ( self . sess , filename [ : - 5 ] ) print ( "Model restored from %s" % restore_meta_file )
Restore from meta file. 'RESTORE_META_FILE' is expected to have .meta at the end.