message: Use tf.train.get_or_create_global_step() instead of deprecated variables.get_or_create_global_step().
diff: @@ -138,7 +138,6 @@ from __future__ import print_function
  import time
  -from tensorflow.contrib.framework.python.ops import variables
  from tensorflow.python.ops import state_ops
  from tensorflow.python.platform import tf_logging as logging
  from tensorflow.python.summary import summary
  @@ -298,7 +297,7 @@ class SummaryAtEndHook(session_run_hook.SessionRunHook):
  def begin(self):
  if self._replace_summary_op:
  self._summary_op = summary.merge_all()
  - self._global_step = variables.get_or_create_global_step()
  + self._global_step = training_util.get_or_create_global_step()
  def after_create_session(self, session, coord):
  if self._summary_writer is None and self._log_dir:
  