embedding_init = W.assign(embedding_placeholder)
sess = tf.Session()
sess.run(embedding_init, feed_dict={embedding_placeholder: embedding})
Using a pre-trained word embedding (word2vec or Glove) in TensorFlow