title: Running text classification - CNN on GPU
body: <p>Based on this github link <a href="https://github.com/dennybritz/cnn-text-classification-tf" rel="nofollow noreferrer">https://github.com/dennybritz/cnn-text-classification-tf</a> , I want to classified my datasets on Ubuntu-16.04 on GPU.
  For running on GPU, I've been changed line 23 on text_cnn.py to this : <strong>with tf.device('<em>/gpu:0</em>'), tf.name_scope("embedding"):</strong></p>
  
  <p>my <strong>first dataset</strong> for train phase has <strong>9000 documents</strong> and it's size is about <strong>120M</strong> and
  <strong>second one</strong> for train has <strong>1300 documents</strong> and it's size is about <strong>1M</strong>.</p>
  
  <p><strong>After running on my Titan X server with GPU, I have got errors.</strong>
  <a href="https://i.stack.imgur.com/pk1oo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pk1oo.png" alt="img-3"></a></p>
  
  <p><a href="https://i.stack.imgur.com/b2Jjh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b2Jjh.png" alt="img"></a> </p>
  
  <p>Please guide me, How can I solve this issue?
  Thanks.</p>