title: Can a model trained using a GPU be used for inference on a CPU?
body: <p>I want to run inference on the CPU; although my machine has a GPU.
  I wonder if it's possible to force TensorFlow to use the CPU rather than the GPU?</p>
  <p>By default, TensorFlow will automatically use GPU for inference, but since my GPU is not good (OOM'ed), I wonder if there's a setting to force Tensorflow to use the CPU for inference?</p>
  <p>For inference, I used:</p>
  <pre><code>tf.contrib.predictor.from_saved_model(&quot;PATH&quot;)
  </code></pre>