title: How do I use TensorFlow GPU?
body: <p>How do I use <strong>TensorFlow GPU</strong> version instead of <strong>CPU</strong> version in Python 3.6 x64?</p>
  <pre><code>import tensorflow as tf
  </code></pre>
  <p>Python is using my <strong>CPU</strong> for calculations. <br/>
  I can notice it because I have an error:</p>
  <blockquote>
  <p>Your CPU supports instructions that this TensorFlow binary was not
  compiled to use: AVX2</p>
  </blockquote>
  <p>I have installed tensorflow and tensorflow-gpu.</p>
  <p>How do I switch to GPU version?</p>