title: Tensorflow not running on GPU
body: <p><strong><em>I have aldready spent a considerable of time digging around on stack overflow and else looking for the answer, but couldn't find anything</em></strong></p>
  
  <p>Hi all,</p>
  
  <p>I am running Tensorflow with Keras on top.
  I am 90% sure I installed Tensorflow GPU, is there any way to check which install I did?</p>
  
  <p>I was trying to do run some CNN models from Jupyter notebook and I noticed that Keras was running the model on the CPU (checked task manager, CPU was at 100%).</p>
  
  <p>I tried running this code from the tensorflow website:</p>
  
  <pre><code># Creates a graph.
  a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
  b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')
  c = tf.matmul(a, b)
  # Creates a session with log_device_placement set to True.
  sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
  # Runs the op.
  print(sess.run(c))
  </code></pre>
  
  <p>And this is what I got:</p>
  
  <pre><code>MatMul: (MatMul): /job:localhost/replica:0/task:0/cpu:0
  2017-06-29 17:09:38.783183: I c:\tf_jenkins\home\workspace\release-win\m\windows\py\35\tensorflow\core\common_runtime\simple_placer.cc:847] MatMul: (MatMul)/job:localhost/replica:0/task:0/cpu:0
  b: (Const): /job:localhost/replica:0/task:0/cpu:0
  2017-06-29 17:09:38.784779: I c:\tf_jenkins\home\workspace\release-win\m\windows\py\35\tensorflow\core\common_runtime\simple_placer.cc:847] b: (Const)/job:localhost/replica:0/task:0/cpu:0
  a: (Const): /job:localhost/replica:0/task:0/cpu:0
  2017-06-29 17:09:38.786128: I c:\tf_jenkins\home\workspace\release-win\m\windows\py\35\tensorflow\core\common_runtime\simple_placer.cc:847] a: (Const)/job:localhost/replica:0/task:0/cpu:0
  [[ 22.  28.]
   [ 49.  64.]]
  </code></pre>
  
  <p>Which to me shows I am running on my CPU, for some reason.</p>
  
  <p>I have a GTX1050 (driver version 382.53), I installed CUDA, and Cudnn, and tensorflow installed without any problems. I installed Visual Studio 2015 as well since it was listed as a compatible version.</p>
  
  <p>I remember CUDA mentioning something about an incompatible driver being installed, but if I recall correctly CUDA should have installed its own driver.</p>
  
  <p><strong>Edit:</strong>
  I ran theses commands to list the available devices</p>
  
  <pre><code>from tensorflow.python.client import device_lib
  print(device_lib.list_local_devices())
  </code></pre>
  
  <p>and this is what I get</p>
  
  <pre><code>[name: "/cpu:0"
  device_type: "CPU"
  memory_limit: 268435456
  locality {
  }
  incarnation: 14922788031522107450
  ]
  </code></pre>
  
  <p>and a whole lot of warnings like this</p>
  
  <pre><code>2017-06-29 17:32:45.401429: W c:\tf_jenkins\home\workspace\release-win\m\windows\py\35\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE instructions, but these are available on your machine and could speed up CPU computations.
  </code></pre>
  
  <p><strong>Edit 2</strong></p>
  
  <p>Tried running</p>
  
  <pre><code>pip3 install --upgrade tensorflow-gpu
  </code></pre>
  
  <p>and I get</p>
  
  <pre><code>Requirement already up-to-date: tensorflow-gpu in c:\users\xxx\appdata\local\programs\python\python35\lib\site-packages
  Requirement already up-to-date: markdown==2.2.0 in c:\users\xxx\appdata\local\programs\python\python35\lib\site-packages (from tensorflow-gpu)
  Requirement already up-to-date: html5lib==0.9999999 in c:\users\xxx\appdata\local\programs\python\python35\lib\site-packages (from tensorflow-gpu)
  Requirement already up-to-date: werkzeug&gt;=0.11.10 in c:\users\xxx\appdata\local\programs\python\python35\lib\site-packages (from tensorflow-gpu)
  Requirement already up-to-date: wheel&gt;=0.26 in c:\users\xxx\appdata\local\programs\python\python35\lib\site-packages (from tensorflow-gpu)
  Requirement already up-to-date: bleach==1.5.0 in c:\users\xxx\appdata\local\programs\python\python35\lib\site-packages (from tensorflow-gpu)
  Requirement already up-to-date: six&gt;=1.10.0 in c:\users\xxx\appdata\local\programs\python\python35\lib\site-packages (from tensorflow-gpu)
  Requirement already up-to-date: protobuf&gt;=3.2.0 in c:\users\xxx\appdata\local\programs\python\python35\lib\site-packages (from tensorflow-gpu)
  Requirement already up-to-date: backports.weakref==1.0rc1 in c:\users\xxx\appdata\local\programs\python\python35\lib\site-packages (from tensorflow-gpu)
  Requirement already up-to-date: numpy&gt;=1.11.0 in c:\users\xxx\appdata\local\programs\python\python35\lib\site-packages (from tensorflow-gpu)
  Requirement already up-to-date: setuptools in c:\users\xxx\appdata\local\programs\python\python35\lib\site-packages (from protobuf&gt;=3.2.0-&gt;tensorflow-gpu)
  </code></pre>
  
  <p><strong>Solved:</strong>
  Check comments for solution.
  Thanks to all who helped!</p>
  
  <p>I am new to this, so any help is greatly appreciated!
  Thank you.</p>