title: TensorFlow How to Initialize Global Step
body: <p>So I'm trying to run a training session, and when I do I get this error when trying to run my algorithm (when I use <code>tf.train.get_global_step()</code>):</p>
  
  <p><code>ValueError: global_step is required for exponential_decay.</code></p>
  
  <p>For some reason, <code>tf.train.get_or_create_global_step()</code> doesn't exist for me, I'm not sure if that's because it's a removed method or what. I updated TensorFlow and everything I'm up to date.</p>
  
  <p>I've dug around the documentation and there's nothing about it. To run I'm using <code>tf.app.run()</code> with a main function.</p>
  
  <p>Is there another way to initialize the global step variable?</p>