from tensorflow.python.ops.control_flow_ops import with_dependencies

                                     self._params)
      incr_step = state_ops.assign_add(training_util.get_global_step(), 1)
      loss = math_ops.reduce_sum(losses)
      training_op = with_dependencies([training_op, incr_step], loss)
      training_hooks = [_InitializeClustersHook(
          init_op, is_initialized, config.is_chief)]
