import tensorflow as tf

    embedding.tensor_name = self.embedding_test.name
    embedding.sprite.image_path = './sprite.png'
    embedding.sprite.single_image_dim.extend([80, 80])
    embedding.metadata_path = './metadata.tsv'
    projector.visualize_embeddings(self.summary_writer, config)
    sess.run(tf.variables_initializer([self.embedding_test], name='init_embeddings'))

    # build sprite image
    ut.images_to_sprite(self.test_set, path=os.path.join(FLAGS.logdir, 'sprite.png'))
    ut.generate_tsv(len(self.test_set), tsv_path)
