title: Word Embedding for Convolution Neural Network
body: <p>I am trying to apply word2vec for convolution neural network. I am new with Tensorflow. Here is my code for pre-train layer.</p>
  
  <pre><code>W = tf.Variable(tf.constant(0.0, shape=[vocabulary_size, embedding_size]),
                  trainable=False, name="W")
  embedding_placeholder = tf.placeholder(tf.float32, [vocabulary_size, embedding_size])
  embedding_init = W.assign(embedding_placeholder)
  sess = tf.Session()
  sess.run(embedding_init, feed_dict={embedding_placeholder: final_embeddings})
  </code></pre>
  
  <p>I think I should use <code>embedding_lookup</code> but not sure how to use it. I really appreace it someone could give some advice.</p>
  
  <p>Thanks</p>