title: Using Tensorflow on GPU interrupts the kernel and yields error: "...TensorFlow binary was not compiled to use: AVX AVX2"
body: <p>Real noob here - trying to build a CNN using tensorflow operating on the GPU but I am struggling (tested it on the CPU and the code runs fine). When I run the code on the GPU </p>
  
  <pre><code>device_name = "GPU:0"
  with tf.device(device_name):
      # Code here
  </code></pre>
  
  <p>things get started but after a few seconds then I get an error with the following title (this is not just a notice - it actually stops the code from continuing to run):</p>
  
  <pre><code>An error ocurred while starting the kernel
  </code></pre>
  
  <p>and the following details (only included the first few lines since it is long and repetitive)</p>
  
  <pre><code>2017 11:37:20.918191: I C:\tf_jenkins\home\workspace\rel‑win\M\windows‑gpu\PY\35\tensorflow\core\platform\cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
  2017 11:37:21.959053: I C:\tf_jenkins\home\workspace\rel‑win\M\windows‑gpu\PY\35\tensorflow\core\common_runtime\gpu\gpu_device.cc:1030] Found device 0 with properties: 
  name: GeForce GTX 1050 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.62
  pciBusID: 0000:01:00.0
  totalMemory: 4.00GiB freeMemory: 3.29GiB
  2017 11:37:21.959079: I C:\tf_jenkins\home\workspace\rel‑win\M\windows‑gpu\PY\35\tensorflow\core\common_runtime\gpu\gpu_device.cc:1120] Creating TensorFlow device (/device:GPU:0) ‑&gt; (device: 0, name: GeForce GTX 1050 Ti, pci bus id: 0000:01:00.0, compute capability: 6.1)
  2017 11:37:22.119554: I C:\tf_jenkins\home\workspace\rel‑win\M\windows‑gpu\PY\35\tensorflow\core\common_runtime\direct_session.cc:299] Device mapping:
  /job:localhost/replica:0/task:0/device:GPU:0 ‑&gt; device: 0, name: GeForce GTX 1050 Ti, pci bus id: 0000:01:00.0, compute capability: 6.1
  </code></pre>
  
  <p>I am pleased it found the device - the important bit seems to be:</p>
  
  <pre><code>Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
  </code></pre>
  
  <p>I have tried to ignore the warning using</p>
  
  <pre><code>import os
  os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
  import tensorflow as tf
  </code></pre>
  
  <p>but that does not change anything.</p>
  
  <p>I am still learning the basics so any and all guidance would be greatly appreciated. Thank you.</p>