import tensorflow as tf

                print('Epoch {} Train Perplexity: {:.3f}'.format(i + 1,
                                                                 train_perplexity))
                if i % 5 == 0:
                    sv.saver.save(train_sess, FLAGS.save_path,
                                  global_step=sv.global_step)

if __name__ == '__main__':
    tf.app.run()
