title: Running BERT on CPU instead of GPU
body: <p>I am trying to execute BERT's <code>run_clasifier.py</code> script using terminal as below:</p>
  
  <pre><code>python run_classifier.py --task_name=cola --do_predict=true --data_dir=&lt;data-dir&gt; --vocab_file=$BERT_BASE_DIR/vocab.txt --bert_config_file=$BERT_BASE_DIR/bert_config.json --init_checkpoint=&lt;output_dir&gt;/model.ckpt-1603 --max_seq_length=512 --output_dir=&lt;output_dir&gt;
  </code></pre>
  
  <p>This by default executes on GPU. Instead, I want to execute it on the CPU. Is there a way to do it for only a single trial of execution than for all the subsequent trials.?</p>