message: No-op refactor and comment fix.
diff: @@ -1071,8 +1071,19 @@ def get_sequential_train_hooks(train_steps=namedtuples.GANTrainSteps(1, 1)):
  return get_hooks
  +def _num_joint_steps(train_steps):
  + g_steps = train_steps.generator_train_steps
  + d_steps = train_steps.discriminator_train_steps
  + # Get the number of each type of step that should be run.
  + num_d_and_g_steps = min(g_steps, d_steps)
  + num_g_steps = g_steps - num_d_and_g_steps
  + num_d_steps = d_steps - num_d_and_g_steps
  +
  + return num_d_and_g_steps, num_g_steps, num_d_steps
  +
  +
  def get_joint_train_hooks(train_steps=namedtuples.GANTrainSteps(1, 1)):
  - """Returns a hooks function for sequential GAN training.
  + """Returns a hooks function for joint GAN training.
  When using these train hooks, IT IS RECOMMENDED TO USE `use_locking=True` ON
  ALL OPTIMIZERS TO AVOID RACE CONDITIONS.
  @@ -1105,12 +1116,7 @@ def get_joint_train_hooks(train_steps=namedtuples.GANTrainSteps(1, 1)):
  Returns:
  A function that takes a GANTrainOps tuple and returns a list of hooks.
  """
  - g_steps = train_steps.generator_train_steps
  - d_steps = train_steps.discriminator_train_steps
  - # Get the number of each type of step that should be run.
  - num_d_and_g_steps = min(g_steps, d_steps)
  - num_g_steps = g_steps - num_d_and_g_steps
  - num_d_steps = d_steps - num_d_and_g_steps
  + num_d_and_g_steps, num_g_steps, num_d_steps = _num_joint_steps(train_steps)
  def get_hooks(train_ops):
  g_op = train_ops.generator_train_op
  