title: 'module' object has no attribute 'feature_column'
body: <p>I ran the official tutorial from Google (<a href="https://cloud.google.com/ml-engine/docs/how-tos/getting-started-training-prediction" rel="noreferrer">link here</a>). It ran fine locally but I got stuck on the part where I need to train the network on the Google Cloud Platform. I ran the following code on my terminal:</p>
  
  <pre><code>JOB_NAME=census_single_1
  OUTPUT_PATH=gs://$BUCKET_NAME/$JOB_NAME
  gcloud ml-engine jobs submit training $JOB_NAME \
  --job-dir $OUTPUT_PATH \
  --runtime-version 1.0 \
  --module-name trainer.task \
  --package-path trainer/ \
  --region $REGION \
  -- \
  --train-files $TRAIN_DATA \
  --eval-files $EVAL_DATA \
  --train-steps 1000 \
  --verbosity DEBUG
  </code></pre>
  
  <p>And I got the following error message:</p>
  
  <blockquote>
    <p>"Traceback (most recent call last):\n  File
    \"/usr/lib/python2.7/runpy.py\", line 162, in _run_module_as_main\n<br>
    \"<strong>main</strong>\", fname, loader, pkg_name)\n  File
    \"/usr/lib/python2.7/runpy.py\", line 72, in _run_code\n    exec code
    in run_globals\n  File
    \"/root/.local/lib/python2.7/site-packages/trainer/task.py\", line 4,
    in \n    import model\n  File
    \"/root/.local/lib/python2.7/site-packages/trainer/model.py\", line
    40, in \n<br>
    tf.feature_column.categorical_column_with_vocabulary_list(\nAttributeError:
    'module' object has no attribute 'feature_column'\n"</p>
  </blockquote>
  
  <p>// <strong>UPDATE</strong></p>
  
  <p>Never mind. I figured it out. It turns out the <code>--runtime-version</code> argument controls the Cloud ML Runtime Version (<a href="https://cloud.google.com/ml-engine/docs/concepts/runtime-version-list" rel="noreferrer">link</a>). In the tutorial it was specified as 1.0, and that corresponds to Tensorflow v 1.0.1, which does not have <code>tf.feature_column.*</code> because it was just introduced in Tensorflow v 1.2.0 on June 16, 2017</p>
  
  <p>// <strong>UPDATE 2</strong></p>
  
  <p>The Google tutorial has been updated to use <code>--runtime-version 1.2</code> instead of <code>--runtime-version 1.0</code> as of today, Jun 29, 2017. I don't know if they saw my post but this was changed between Jun 28 and Jun 29. Future users on that tutorial shouldn't experience the same issue I had. </p>