from tensorflow.contrib.tensorboard.plugins import projector

    self.embedding_test_ph = tf.placeholder(tf.float32, embedding_shape, name='embedding')
    self.embedding_test = tf.Variable(tf.random_normal(embedding_shape), name='test_embedding', trainable=False)
    self.embedding_assign = self.embedding_test.assign(self.embedding_test_ph)
    self.embedding_saver = tf.train.Saver(var_list=[self.embedding_test])

    config = projector.ProjectorConfig()
    embedding = config.embeddings.add()
    embedding.tensor_name = self.embedding_test.name
    embedding.sprite.image_path = './sprite.png'
    embedding.sprite.single_image_dim.extend([80, 80])
